-
Notifications
You must be signed in to change notification settings - Fork 51
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
HEIC: Unsupported feature: Unsupported color conversion #102
Comments
Yep, you can email it to me directly. I expect if the Windows decoder can handle it, libheif should be able to. There were changes to the way it does conversions in the last few versions, and I don't have a ton of test images. |
Received the sample image by email, thanks. The error is coming back from The result of that change was that if you ask for YCbCr from the decoder, it double converts YcbCr->RGB->YCbCr. That is, of course, much slower (strukturag/libheif#472) and, up until v1.12.0, resulted in incorrect colors due to a math error in the RGB->YCbCr side of the conversion (strukturag/libheif#313). The Windows HEIF codec ( To sum up, it's likely I could handle that image at least as well as Windows if I could get the YCbCr data out from My longer term plan is replace |
Just leaving a few notes here for myself after looking at this in more detail... Looks like the issue here is actually that the image has multiple frames (YUV420 Main + Y RangeExtension). iOS interprets the second frame as an alpha mask and outputs an image with a transparent border, while the WIC decoder ignores the second frame entirely. libheif returns the "Unsupported color conversion" error whether the requested format is RGB or RGBA -- it's unclear whether there is some combination of parameters that will actually allow decode. The apparent chroma artifacts at the image top would seem to be unrelated to the issue. They show up in both the WIC and iOS decoded frames, but the container and both frame bitstreams pass all validation tests I've run on them. |
I'm trying to process a heic file, but I got the following exception (using latest version):
File properties:
Windows Photos can show the file.
Unfortunately I can't share the file, can I send it privately to you?
The text was updated successfully, but these errors were encountered: