-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem to copy exif data of image made with Canon EOS 650D #2
Comments
Same problem when I run the example: examples/image-rs$ cargo run IMG_0818.JPG out.jpg
examples/image-rs$ exif out.jpg
Corrupt data
The data provided does not follow the specification.
ExifLoader: The data supplied does not seem to contain EXIF data. Here is a diff made with exiftool:
I just see 'JFIF Version' Tag is new and 'Thumbnail Offset' and 'Y Cb Cr Sub Sampling' changed. |
Thanks for the issue. I haven't yet had time to look into this. I hope to get to it this weekend. |
Hi, thank you for the response. Libexif could make a fix, I can read the exif data in the images now. |
I think I found the issue. Your jpeg contains two EXIF segments, which should be concatenated before reading. This can be seen by running
I had already implemented this kind of flattening for ICCP segments, but didn't consider that the same could be necessary for EXIF. I'll commit a fix later in the day. |
While trying to integrate img-parts into my project I observed a problem processing images of one camera.
In the following example I take the image
extract the exif data and save it to large.jpg.
I observe the tool, which is based on libexif
reports the exif data is corrupt.
Also many other programs like filebrowser nemo can not view the exif data.
The tool exiftool still can read the exif data.
If I use the image https://github.com/paolobarbolini/img-parts/blob/main/tests/images/P1133897_sRGB.jpg as
source for the image data or the other way around as source for the exif data,
the resulting images are both readable with exif.
Here is the code with Cargo.toml dependencies:
img-parts = { git = "https://github.com/paolobarbolini/img-parts"}
The text was updated successfully, but these errors were encountered: