-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error when open a HEIC image - Failed to decode image: Invalid ftyp #19
Comments
This is expected behavior. You can use pillow_heif to decode and encode HEIF files. It should be sufficient to add, where you have import pillow_heif
pillow_heif.register_heif_opener() |
I already tested with I was looking this code here and this validation should accept header with coding_brands = (b"avif", b"avis")
container_brands = (b"mif1", b"msf1") |
Oh I see, yes that is a bug. I'm preparing the 1.3.0 release, I'll include a fix for that. |
This will allow pillow-avif-plugin to be interoperable with the HEIC opener in pillow_heif. Fixes #19.
Thanks! @fdintino 🥳 |
This will allow pillow-avif-plugin to be interoperable with the HEIC opener in pillow_heif. Fixes #19.
I was testing some image format conversion on Thumbor, with
pillow-avif-plugin
.And I guess I found a bug when
pillow-avif
try to open a HEIC file.HEIC file tested here
# HEIC header $ head -1 1.heic ftypmif1mif1heic
AVIF file tested here
# AVIF header $ head -1 image.avif ftypavifavifmif1miaf
Steps to reproduce
Log
The text was updated successfully, but these errors were encountered: