Nerdiest Political Manifesto

    gatsby-plugin-sharp-exif

    1.0.4 • Public • Published

    gatsby-plugin-sharp-exif

    npm GitHub

    Gatsby Plugin to extract EXIF data from images, compatible with gatsby-plugin-sharp

    Install

    Install gatsby-plugin-sharp-exif...

    ...using yarn:

    yarn add --dev gatsby-plugin-sharp-exif

    ...or npm:

    npm install --save-dev gatsby-plugin-sharp-exif

    How to use

    Add the plugin to your gatsby-config.js

    module.exports = {
      plugins: ['gatsby-plugin-sharp-exif']
    };

    Then just query the EXIF data as part of the ImageSharp type:

    {
      allImageSharp {
        edges {
          node {
            fields {
              exif {
                gps {
                  longitude
                  latitude
                }
                meta {
                  dateTaken
                }
                raw {
                  image {
                    Make
                  }
                }
              }
            }
          }
        }
      }
    }

    Install

    npm i gatsby-plugin-sharp-exif

    DownloadsWeekly Downloads

    24

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.44 kB

    Total Files

    7

    Last publish

    Collaborators

    • thomasgassmann