EXIF Data API


POST /upload/

Definition

Route to upload a file passed in parameter

It will retrieve a hash Srting that will be used to reference this file on other routes

Output

Example

curl -F "file=@test.jpeg" http://localhost:3000/upload

GET /read

GET /read/simple/:hash

Definition

Route to retrieve only principal EXIF metadata from the file referenced by the hash parameter

JSON output is structured in array of categories

Non exhaustive list of all metadata found

Output

Example

curl http://localhost:3000/read/simple/6b72a79a3432f7990a5055bf03024109

GET /read/full/:hash

Definition

Route to retrieve a more complete list of EXIF metadata from the file referenced by the hash parameter

JSON output is structured in array of categories

Non exhaustive list of all metadata found

Output

Example

curl http://localhost:3000/read/full/6b72a79a3432f7990a5055bf03024109

GET /read/raw/:hash

Definition

Route to retrieve all EXIF metadata from the file referenced by the hash parameter

JSON output in not structured and the list of metadata is not known in advance

Exhaustive list of all metadata found

Output

Example

curl http://localhost:3000/read/raw/6b72a79a3432f7990a5055bf03024109

GET /copy/:hash_source/:hash_dest

Definition

Route to copy EXIF metadata from a source file into a destination file, both referenced by hash parameters

The output is a copy of the destination file with EXIF metadata of the source file

Output

curl http://localhost:3000/copy/6b72a79a3432f7990a5055bf03024109/a8e9cdfebfa47c9e574b7d0b97b42432

GET /delete/:hash

Definition

Route to delete EXIF metadata from a file referenced by the hash parameter

The output is a copy of the original file with EXIF metadata deleted

Note: Few of them cannot be deleted (e.g: length, width, megapixels)

Output

Example

curl http://localhost:3000/delete/6b72a79a3432f7990a5055bf03024109