Skip to content

fetch-exif is a Node.js web service that retrieves EXIF metadata from a provided image URL.

License

Notifications You must be signed in to change notification settings

Darmau/fetch-exif

Repository files navigation

fetch-exif

The fetch-exif is a Node.js application that provides two endpoints for retrieving EXIF and GPS data from image URLs.

Installation

Clone the repository and install the dependencies:

git clone https://github.com/darmau/fetch-exif.git
cd fetch-exif
npm install

You will need a running MongoDB instance on your server. The URL of the database can be set in the .env file.

Usage

Start the server using the following command:

npm start

The server is now running on http://localhost:1216 by default.

To retrieve the EXIF data of an image, make a GET request to the /exif endpoint with the url query parameter set to the URL of the image:

GET /exif?url=imageurl

This will return a JSON object containing the EXIF data of the image.

To retrieve the GPS data of an image, make a GET request to the /gps endpoint with the url query parameter set to the URL of the image:

GET /gps?url=imageurl

This will return a JSON object containing the GPS data of the image.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

fetch-exif is a Node.js web service that retrieves EXIF metadata from a provided image URL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published