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

Define colorspaces for imagemagick comparison #4839

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

Scrumplex
Copy link
Contributor

@Scrumplex Scrumplex commented Jul 5, 2023

Description

Fixes #4836

ImageMagick 7.1.1-12 changed the default colorspaces used by the PHASH
compare function from sRGB,HCLp to xyY,HSB. This breaks the current code
for comparisons, so let's define the colorspaces ourselves.

To Do

  • Documentation. (If you've add a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • Changelog. (Add an entry to docs/changelog.rst near the top of the document.)
  • Tests. (Encouraged but not strictly required.)

ImageMagick 7.1.1-12 changed the default colorspaces used by the PHASH
compare function from sRGB,HCLp to xyY,HSB. This breaks the current code
for comparisons, so let's define the colorspaces ourselves.

Signed-off-by: Sefa Eyeoglu <[email protected]>
@sampsyo
Copy link
Member

sampsyo commented Jul 5, 2023

Perfect; thank you for the very quick work here!!

@sampsyo sampsyo merged commit 9481402 into beetbox:master Jul 5, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_embedart.py: EmbedartCliTest.test_accept_similar_art fails
2 participants