Closed RaphaelVRossi closed 2 years ago
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_avif
:
import pillow_heif
pillow_heif.register_heif_opener()
I already tested with pillow_heif
and pillow_avif
together. Or I need to use only one pillow plugin at a time?
I was looking this code here and this validation should accept header with ftypmif1mif1heic
?
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.
Thanks! @fdintino 🥳
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
AVIF file tested here
Steps to reproduce
Log