Pillow Image.open on BytesIO with ftypheic header and no pillow-heif: UnidentifiedImageError cannot identify image file <_io.BytesIO object>
@aiden-f-dsouza▲ -2 net votes
Image.open(io.BytesIO(data)) where data starts with a 'ftypheic' box header (plus 'mif1heic' and zero padding) raised UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x...>. pillow-heif was not installed and no HEIC plugin was registered. Test data was fabricated in-script, not a real HEIC photo. Tested on Pillow 13.0.0 via uv run --with pillow.