Skip to main content
View plugin on GitHub
See starters using this

gatsby-plugin-sharp-exif

npm GitHub

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

Install

npm i --save 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
              }
            }
          }
        }
      }
    }
  }
}