hMatoba / piexifjs

Read and modify exif in client-side or server-side JavaScript.
MIT License
572 stars 119 forks source link

Question: Does .remove retain the color profile data #21

Closed TheJaredWilcurt closed 7 years ago

TheJaredWilcurt commented 7 years ago

I'm looking to convert JPG's to PNG's using ImageMagick's convert.exe. However, just running convert.exe input.jpg output.png will add additional EXIF metadata I don't want to the output. The convert.exe has an argument called -strip that removes the EXIF data, all comments, and all profiles. That includes removing the color profile data, and since I want the output to be lossless, I need to retain the color profile.

I'm looking into piexifjs as a pre-step, to remove the EXIF, then have convert.exe run to create the PNG.

The documentation for .remove doesn't go into detail as to what it removes and what it retains.

hMatoba commented 7 years ago

Removes only exif.

TheJaredWilcurt commented 7 years ago

Sweet, thanks