How to use the exifreader.load function in exifreader

To help you get started, we’ve selected a few exifreader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FreemapSlovakia / freemap-v3-react / src / hooks / pictureDropHandlerHook.ts View on Github external
reader.onload = () => {
        let tags: { [key: string]: any };
        try {
          tags = ExifReader.load(reader.result as ArrayBuffer);
        } catch (e) {
          tags = {};
        }

        const keywords: string[] = [];

        // try {
        //   keywords.push(...tags.Keywords.description.split(',').map(x => x.trim()).filter(x => x));
        // } catch (e) {
        //   // ignore
        // }
        //
        // try {
        //   keywords.push(...tags.subject.value.map(({ description }) => description));
        // } catch (e) {
        //   // ignore

exifreader

Library that parses Exif metadata in images.

MPL-2.0
Latest version published 2 days ago

Package Health Score

86 / 100
Full package analysis

Popular exifreader functions

Similar packages