depot/third_party/nixpkgs/pkgs/tools/audio/beets/imagemagick-nix-path.patch
Default email 646c172193 Project import generated by Copybara.
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
2021-12-21 10:18:32 +08:00

20 lines
901 B
Diff

diff --git i/beets/util/artresizer.py w/beets/util/artresizer.py
index 8683e228..2f38b4d6 100644
--- i/beets/util/artresizer.py
+++ w/beets/util/artresizer.py
@@ -334,13 +334,8 @@ class ArtResizer(metaclass=Shareable):
# not, fall back to the older, separate convert and identify
# commands.
if self.method[0] == IMAGEMAGICK:
- self.im_legacy = self.method[2]
- if self.im_legacy:
- self.im_convert_cmd = ['convert']
- self.im_identify_cmd = ['identify']
- else:
- self.im_convert_cmd = ['magick']
- self.im_identify_cmd = ['magick', 'identify']
+ self.im_convert_cmd = ['@imagemagick@/bin/magick']
+ self.im_identify_cmd = ['@imagemagick@/bin/magick', 'identify']
def resize(
self, maxwidth, path_in, path_out=None, quality=0, max_filesize=0