nixpkgs-suyu/pkgs/tools/audio/beets/patches/fix-embedart-imagick-7.1.1-12.patch
Sefa Eyeoglu d0a98a0fc2
beets-unstable: unstable-2022-08-27 -> unstable-2023-07-05
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-07-09 18:18:04 +02:00

13 lines
736 B
Diff

diff --git a/beets/art.py b/beets/art.py
index 13d5dfbd..ac1d2fd8 100644
--- a/beets/art.py
+++ b/beets/art.py
@@ -132,7 +132,7 @@ def check_art_similarity(log, item, imagepath, compare_threshold):
convert_cmd = ['convert', syspath(imagepath, prefix=False),
syspath(art, prefix=False),
'-colorspace', 'gray', 'MIFF:-']
- compare_cmd = ['compare', '-metric', 'PHASH', '-', 'null:']
+ compare_cmd = ['compare', '-define', 'phash:colorspaces=sRGB,HCLp', '-metric', 'PHASH', '-', 'null:']
log.debug('comparing images with pipeline {} | {}',
convert_cmd, compare_cmd)
convert_proc = subprocess.Popen(