Skip to content
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

Document that QoiImagePlugin uses Python for decoding #7937

Merged
merged 5 commits into from
Apr 5, 2024

Conversation

radarhere
Copy link
Member

Resolves #7922

#7922 (comment)

That said, Pillow's processing of QOI files in Python, not C, could probably be clarified here: https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#qoi.

@hugovk
Copy link
Member

hugovk commented Apr 3, 2024

Shall we also mention https://github.com/kodonnell/qoi or https://pypi.org/project/qoi/? It's not a Pillow plugin but can be a useful alternative.

@radarhere
Copy link
Member Author

I've pushed a commit.

Now that AppVeyor is skipped, I was able to do so quite quickly!

Pillow identifies and reads images in Quite OK Image format.
Pillow reads images in Quite OK Image format, using a Python decoder. If you wish to
write code specifically for this format, https://pypi.org/project/qoi is an alternative
library that interfaces with NumPy.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention C somehow, so they know it's faster?

Suggested change
library that interfaces with NumPy.
library written in C that interfaces with NumPy.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"written in C" sounds to me like the entire library is in C. How about "that uses C to decode the image"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, something like that's fine too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I've pushed a commit for that.

docs/handbook/image-file-formats.rst Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
radarhere and others added 2 commits April 5, 2024 05:16
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
@radarhere radarhere merged commit ff64ade into python-pillow:main Apr 5, 2024
5 checks passed
@radarhere radarhere deleted the qoi branch April 5, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reading Quite OK Image (QOI) files is slow compared to PNG and qoi
3 participants