-
Notifications
You must be signed in to change notification settings - Fork 78
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
Exif support #221
base: master
Are you sure you want to change the base?
Exif support #221
Conversation
Thanks for sharing this! I've been wanting to add better EXIF handling to image-rs and being able to convert the EXIF data in a TIFF file into the same form as the EXIF chunks in PNG or JPEG would certainly help with that. It'll probably be a little while before I have a chance to work on implementing that, so I'll leave this open for now |
Where is this at ? I am interested in writing Exif as well and would love to help. |
IFD data structures are defined twice. In Line 161 in 6dc7a26
Lines 565 to 569 in 6dc7a26
And Line 699 in 6dc7a26
Lines 334 to 338 in 6dc7a26
|
Does this require an |
Curious whether this is (or can be turned into) something usable for more than just me.
I've added a way to access embedded Exif tags in a sort-of-standardized way. The basic idea is that allows access when decoding images for other parsing libraries and for recoding images with the Exif tag intact. Since Exif is essentially TIFF-formatted, all the basic tools were more or less in place and I just had to tweak them a bit. The things that were really missing was support for IFD sub-directories and encoding values with a dynamically derived type.
Decoder -> has a method to gather the Exif information, store the entries and feed them into an encoder for a TIFF-file without pixel data.
Encoder -> has a similar method to decode TIFF-file with-or-without pixel data and feed the Exif entries into the encoder itself.