-
Notifications
You must be signed in to change notification settings - Fork 89
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
question: exif support? #42
Comments
It would be great to receive a PR for getting exif data. Exposing a As for your other question, do you only want to change the exif data segment or do you also need to reencode the image? |
thanks for the quick response. and great - i will try to put a PR together and submit it. for the 2nd question, yes I'd only want to modify the exif segment, and then write it back out along with the unmodified image data. |
For just modifying the exif data, I would split the file at the beginning and end of the exif data segment and then just swap in the modified exif data. However if you only change the values in the exif data and don't add/remove anything you could just modify it in-place. |
Hm, the issues I see in that case are:
|
The easiest way to find the offset of a JPEG segment is to use something like immeta's
To start a APP1 segment (which is used to store exif data) you write https://www.media.mit.edu/pia/Research/deepview/exif.html is a great resource for understanding how exif is stored in a JPEG file. |
In terms of And as I mentioned previously, it would be no problem for application code to create a jpeg segment, just that it's a bit of a layering mismatch. I'll probably just stick with that for now, though - thanks :) |
related: image-rs/image#1045 |
I've been doing some testing with this library, which seems great, and have a couple questions:
Vec<u8>
to the decoder, and allow users to process it outside the library as they please.The text was updated successfully, but these errors were encountered: