-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
_Exception (Exception: Codec failed to produce an image, possibly due to invalid image data.) #709
Comments
I'll take a look at it this evening (my time). The exception isn't from this library though. |
@brendan-duncan sorry I thought it was from this library when decoding the image. It's another strange image file, I’m not sure of the bit-depth. Photographers have quite complex needs regarding image format |
Taking a quick look while my work code is compiling, the TIFF is 8-bit CMYK. That should be fine. But it's definitely not decoding correctly. Maybe some weird TIFF configuration not being handled correctly. I also see the conversion from CMYK to RGB is allocating an array each call, which will accumulate garbage collection, so I'll clean that up too while I'm in there looking into things. |
Part of the problem (or the main problem) is the image is a 5-channel CMYK. I'm not entirely sure what the 5th channel is, I assume alpha. The library just isn't doing a good job handling that scenario. I'll have to fix it up. |
Should be fixed in git now, I have it handle 5-channel CMYK-alpha now and the image decoded for me. |
@brendan-duncan you are the best! 💪 |
DaVinci-Resolve-Logo.tif.zip
try to decode this tiff
_Exception (Exception: Codec failed to produce an image, possibly due to invalid image data.)
The text was updated successfully, but these errors were encountered: