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

Use LAB hopper file if conversion is not supported #7979

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

radarhere
Copy link
Member

If I skip building lcms2, then there is a test failure trying to create a LAB hopper, as convert() uses ImageCms to convert between RGB and LAB.

This PR checks for an ImportError, and if it happens, it opens Tests/images/hopper.Lab.tif instead.

With this, the tests pass.

@hugovk hugovk merged commit a8f434f into python-pillow:main Apr 26, 2024
53 of 54 checks passed
@radarhere radarhere deleted the lab branch April 26, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants