Skip to content

Commit

Permalink
Merge pull request #4839 from Scrumplex/fix-compare-colorspaces
Browse files Browse the repository at this point in the history
Define colorspaces for imagemagick comparison
  • Loading branch information
sampsyo committed Jul 5, 2023
2 parents dac9712 + 17b341a commit 9481402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions beets/util/artresizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def compare(self, im1, im2, compare_threshold):
'-colorspace', 'gray', 'MIFF:-'
]
compare_cmd = self.compare_cmd + [
'-define', 'phash:colorspaces=sRGB,HCLp',
'-metric', 'PHASH', '-', 'null:',
]
log.debug('comparing images with pipeline {} | {}',
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ Bug fixes:
* :doc:`plugins/lyrics`: Fixed issue with Tekstowo backend not actually checking
if the found song matches.
:bug:`4406`
* :doc:`plugins/embedart`: Add support for ImageMagick 7.1.1-12
:bug:`4836`
* :doc:`/plugins/fromfilename`: Fix failed detection of <track> <title>
filename patterns.
:bug:`4561` :bug:`4600`
Expand Down

0 comments on commit 9481402

Please sign in to comment.