Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasgassmann/gatsby-plugin-sharp-exif

Gatsby Plugin to extract EXIF data from images, compatible with gatsby-plugin-sharp
https://github.com/thomasgassmann/gatsby-plugin-sharp-exif

exif-data gatsby gatsby-plugin gatsby-plugin-sharp gatsbyjs

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# gatsby-plugin-sharp-exif

[![npm](https://img.shields.io/npm/v/gatsby-plugin-sharp-exif)](https://www.npmjs.com/package/gatsby-plugin-sharp-exif) ![GitHub](https://img.shields.io/github/license/thomasgassmann/gatsby-plugin-sharp-exif) ![](https://github.com/thomasgassmann/gatsby-plugin-sharp-exif/workflows/release/badge.svg)

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

## Install

Install `gatsby-plugin-sharp-exif`...

...using [`yarn`](https://yarnpkg.com):

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

...or [`npm`](https://www.npmjs.com/):

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

## How to use

Add the plugin to your `gatsby-config.js`

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

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

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