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
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
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
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