strukturag / libheif

libheif is an HEIF and AVIF file format decoder and encoder.
Other
1.75k stars 302 forks source link

HEIF Decoding Image Failed #1303

Closed pramath-pancholi closed 1 month ago

pramath-pancholi commented 1 month ago

I'm using the heic2any library which uses this library under the hood to convert heif images to jpeg, and I'm getting a decoding error on some images but not others. All the images I'm trying to convert are in heif format, and while some successfully get converted to jpeg, others all fail with the exact same error:

image

Since everything is minified I really can't tell what the problem could be.

farindk commented 1 month ago

Probably, it's because heic2any uses an old libheif version. You should try the image with the heif-dec program (or heif-convert if you have an older version installed). You should try with a v1.18.x version because current images from iOS may need that version.

farindk commented 1 month ago

Can I close this?