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

Added QOI reading #6852

Merged
merged 4 commits into from
Mar 12, 2023
Merged

Added QOI reading #6852

merged 4 commits into from
Mar 12, 2023

Conversation

radarhere
Copy link
Member

Resolves #6844

Adds support for reading the QOI image format - https://qoiformat.org/.

The specification is https://qoiformat.org/qoi-specification.pdf
I created the test images using https://www.aconvert.com/image/png-to-qoi/

@radarhere radarhere mentioned this pull request Jan 2, 2023
docs/handbook/image-file-formats.rst Outdated Show resolved Hide resolved
from .helper import assert_image_equal_tofile, assert_image_similar_tofile


class TestFileQOI:
Copy link
Member

Choose a reason for hiding this comment

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

We could maybe skip the class here and use plain, top-level functions?

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, I've added a commit for this.

docs/releasenotes/9.5.0.rst Outdated Show resolved Hide resolved
src/PIL/QoiImagePlugin.py Outdated Show resolved Hide resolved
radarhere and others added 2 commits March 12, 2023 23:25
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@hugovk hugovk added the automerge Automatically merge PRs that are ready label Mar 12, 2023
@mergify mergify bot merged commit 264b19b into python-pillow:main Mar 12, 2023
@radarhere radarhere deleted the qoi branch March 12, 2023 20:58
@dofuuz
Copy link

dofuuz commented Jun 14, 2023

QOI is read-only now, but its doc is on Write-only formats section.

@radarhere
Copy link
Member Author

You're right, I've created #7212 to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PRs that are ready Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QOI support
3 participants