mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Remove unnecessary escape caret in ImageMagick convert argument, Fixes #2729
This commit is contained in:
parent
31642cd7cc
commit
a0643dc540
1 changed files with 4 additions and 5 deletions
|
|
@ -88,14 +88,13 @@ def im_resize(maxwidth, path_in, path_out=None):
|
||||||
log.debug(u'artresizer: ImageMagick resizing {0} to {1}',
|
log.debug(u'artresizer: ImageMagick resizing {0} to {1}',
|
||||||
util.displayable_path(path_in), util.displayable_path(path_out))
|
util.displayable_path(path_in), util.displayable_path(path_out))
|
||||||
|
|
||||||
# "-resize widthxheight>" shrinks images with dimension(s) larger
|
# "-resize WIDTHx>" shrinks images with the width larger
|
||||||
# than the corresponding width and/or height dimension(s). The >
|
# than the given width while maintaining the aspect ratio
|
||||||
# "only shrink" flag is prefixed by ^ escape char for Windows
|
# with regards to the height.
|
||||||
# compatibility.
|
|
||||||
try:
|
try:
|
||||||
util.command_output([
|
util.command_output([
|
||||||
'convert', util.syspath(path_in, prefix=False),
|
'convert', util.syspath(path_in, prefix=False),
|
||||||
'-resize', '{0}x^>'.format(maxwidth),
|
'-resize', '{0}x>'.format(maxwidth),
|
||||||
util.syspath(path_out, prefix=False),
|
util.syspath(path_out, prefix=False),
|
||||||
])
|
])
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue