Jimp: Preserve Exif Data

Created on 23 Jan 2016  路  6Comments  路  Source: oliver-moran/jimp

Hi,

I just tried rotating an image and see that the resulting image is without exif data. Is there a way to preserve exif data?

Thanks

enhancement

Most helpful comment

@photopea that's not the point. Both JPEG and TIFF support EXIF data. The images we are processing start out with exif data. we should be able to keep that data in the image. Also this doesn't look like text to me

{ "orientation": 1 }

It's metadata about the image. It makes no sense to just store it in a text file. As a user I would be confused if my image processing library started producing text files randomly

All 6 comments

At the moment, Jimp blows away all exif data. This is because every image is treated as a brand new bitmap. No objection to support being added though or adding it to a roadmap.

https://github.com/eugeneware/jpeg-js/issues/44
https://github.com/photopea/UTIF.js/issues/36

Keeping track of the orientation after rotations might be hard

Guys, images are not a place to store text. Just add a text file next to your image, or put it inside a file name (in your file system).

@photopea that's not the point. Both JPEG and TIFF support EXIF data. The images we are processing start out with exif data. we should be able to keep that data in the image. Also this doesn't look like text to me

{ "orientation": 1 }

It's metadata about the image. It makes no sense to just store it in a text file. As a user I would be confused if my image processing library started producing text files randomly

@hipstersmoothie FYI keeping identical exif data for a JPEG should be fairly straight forward, just keeping the bytes in the APP1 'Exif' marker segment and sticking them back in is much easier than creating an EXIF decoder + encoder

closing in favor of #556

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jBernavaPrah picture jBernavaPrah  路  4Comments

chancein007 picture chancein007  路  5Comments

tutyamxx picture tutyamxx  路  4Comments

laino picture laino  路  5Comments

master-of-null picture master-of-null  路  3Comments