Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node.js create / modify Exif inside the JPEG

Is there a native Javascript module that allows creating / modifying EXIF and IPTC sections inside the JPEG file ?

Note: I already have the Exif data of the image that I am receiving from iPhone along with the image. Since he image does not include all the metadata in itself, I want to combine it and save it on my server.

I came across a one module in my search but that seems abandoned and it never implemented writing of EXIF.

https://github.com/logicalparadox/exifdata

Does anyone know of a pure Javascript module that I can use ?

I did find a C library "libexif" that can do the job. I have not tested it yet. I'm still trying to stay with Javascript.

Write exif data to jpg using libexif

Thanks in advance.

like image 249
Curious101 Avatar asked Aug 17 '16 21:08

Curious101


People also ask

Can you add your own EXIF parameter?

EXIF key-value pairs are called tags, and each tag can contain either a string or numeric value. There are dozens of tags in the current EXIF standard (version 2.32), and anyone — from smartphone and camera manufacturers to photographers — is free to add their own.


1 Answers

PiexifJS did the job for me. Runs on the browser and on node. No external dependencies.

like image 153
Oren Pinsky Avatar answered Oct 14 '22 23:10

Oren Pinsky