Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Document that QoiImagePlugin uses Python for decoding#7937

Merged
radarhere merged 5 commits into
python-pillow:mainpython-pillow/Pillow:mainfrom
radarhere:qoiradarhere/Pillow:qoiCopy head branch name to clipboard
Apr 5, 2024
Merged

Document that QoiImagePlugin uses Python for decoding#7937
radarhere merged 5 commits into
python-pillow:mainpython-pillow/Pillow:mainfrom
radarhere:qoiradarhere/Pillow:qoiCopy head branch name to clipboard

Conversation

@radarhere

Copy link
Copy Markdown
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

hugovk commented Apr 3, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

I've pushed a commit.

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

Comment thread docs/handbook/image-file-formats.rst Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread docs/handbook/image-file-formats.rst Outdated
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Comment thread docs/handbook/image-file-formats.rst Outdated
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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.