-
Notifications
You must be signed in to change notification settings - Fork 286
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
Can't load PNG produced by Blender 3.6 #2745
Comments
I can reproduce this w/ 0.27.7 exiv2 CLI, thanks for the sample. The "This does not look like a TIFF image" is not related to the PNG image itself, but presumably to the eXIf chunk which is supposed to be based on the TIFF spec... |
There are actually 2 (identical!) eXIf chunks in this PNG file, but very short so might not carry any significant metadata:
|
Btw,
|
Ok, so the TIFF signature This is a Blender (or whatever library they use to write PNGs) bug. The only thing exiv2 can do here is perhaps detect this special byteswap case and tolerate it (like exiftool) w/ a warning instead of erroring out... |
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 <[email protected]>
…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 <[email protected]>
…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 <[email protected]>
Thanks for addressing this upstream. |
Describe the bug
I use Python bindings https://github.com/LeoHsiao1/pyexiv2 though I think the problem is related to exiv2 library itself.
Problem: Can't load PNG file saved by Blender 3.6. I get error: RuntimeError: This does not look like a TIFF image
Exception from Python:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
PNG produced by other programs load without problems.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: