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
Write out proper tiff header version in png EXIF blobs #3984
Write out proper tiff header version in png EXIF blobs #3984
Conversation
Signed-off-by: Jesse Yurkovich <jesse.y@gmail.com>
There is one additional quirk which I have not been able to find the cause of.
|
I believe this is ready for review. The "duplication" problem noted is not critical and can be solved separately if no one happens to have a good solution to checkin along side the primary fix. |
I'm not sure that duplication is an actual problem. That header follows the calls to |
Wow, I might be getting extremely unlucky. We're using libpng 1.6.39 (Nov 2022) and there's an interesting fix in 1.6.40 which might explain the duplication at least. https://sourceforge.net/p/libpng/code/ci/e6c5bf46c4fa3e3738a2ed0896ce33fc270e0cac/
I haven't found good information about the @lgritz Does the primary fix here seem ok though? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…demySoftwareFoundation#3984) When writing out EXIF headers in PNG files, the `tiff_version` field wasn't handling endianness properly. This lead to some tools like `exiv2` refusing to process the file at all[1] [1] Exiv2/exiv2#2745 --------- Signed-off-by: Jesse Yurkovich <jesse.y@gmail.com>
…demySoftwareFoundation#3984) When writing out EXIF headers in PNG files, the `tiff_version` field wasn't handling endianness properly. This lead to some tools like `exiv2` refusing to process the file at all[1] [1] Exiv2/exiv2#2745 --------- Signed-off-by: Jesse Yurkovich <jesse.y@gmail.com>
Description
When writing out EXIF headers in PNG files, the
tiff_version
field wasn't handling endianness properly.This lead to some tools like
exiv2
refusing to process the file at all[1][1] Exiv2/exiv2#2745
Checklist:
(adding new test cases if necessary).
corresponding Python bindings (and if altering ImageBufAlgo functions, also
exposed the new functionality as oiiotool options).
already run clang-format before submitting, I definitely will look at the CI
test that runs clang-format and fix anything that it highlights as being
nonconforming.