mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 19:42:42 +01:00
Define colorspaces for imagemagick comparison
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 <contact@scrumplex.net>
This commit is contained in:
parent
dac9712240
commit
a873a191b9
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ class IMBackend(LocalBackend):
|
|||
'-colorspace', 'gray', 'MIFF:-'
|
||||
]
|
||||
compare_cmd = self.compare_cmd + [
|
||||
'-metric', 'PHASH', '-', 'null:',
|
||||
'-define', 'phash:colorspaces=sRGB,HCLp', '-metric', 'PHASH', '-', 'null:',
|
||||
]
|
||||
log.debug('comparing images with pipeline {} | {}',
|
||||
convert_cmd, compare_cmd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue