Skip to content

QOI support #6844

@Max1Truc

Description

@Max1Truc

What did you do?

Tried to open a QOI image ( https://qoiformat.org/ ) with Pillow (Image.open("picture.qoi"))

The picture is in this zip file (a 2-seconds stick-man) : picture.zip

What did you expect to happen?

I would love Pillow to recognize the file type and open the image.

What actually happened?

Pillow can't recognize the QOI format.

>>> from PIL import Image
>>> Image.open("picture.qoi")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/PIL/Image.py", line 3186, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file 'picture.qoi'

What are your OS, Python and Pillow versions?

  • OS: Manjaro Linux
  • Python: 3.10.8
  • Pillow: 9.3.0

To replicate

from PIL import Image
Image.open("picture.qoi")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions