Skip to content

Commit 15c701d

Browse files
committed
Merge pull request #2762 from sekjun9878/patch-1
Remove unnecessary escape caret in ImageMagick convert argument
2 parents 31642cd + 9ef0ec2 commit 15c701d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

beets/util/artresizer.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,13 @@ def im_resize(maxwidth, path_in, path_out=None):
8888
log.debug(u'artresizer: ImageMagick resizing {0} to {1}',
8989
util.displayable_path(path_in), util.displayable_path(path_out))
9090

91-
# "-resize widthxheight>" shrinks images with dimension(s) larger
92-
# than the corresponding width and/or height dimension(s). The >
93-
# "only shrink" flag is prefixed by ^ escape char for Windows
94-
# compatibility.
91+
# "-resize WIDTHx>" shrinks images with the width larger
92+
# than the given width while maintaining the aspect ratio
93+
# with regards to the height.
9594
try:
9695
util.command_output([
9796
'convert', util.syspath(path_in, prefix=False),
98-
'-resize', '{0}x^>'.format(maxwidth),
97+
'-resize', '{0}x>'.format(maxwidth),
9998
util.syspath(path_out, prefix=False),
10099
])
101100
except subprocess.CalledProcessError:

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Fixes:
8888
"Edit Candidates" option is used. :bug:`2734`
8989
* Fix a crash when numeric metadata fields contain just a minus or plus sign
9090
with no following numbers. Thanks to :user:`eigengrau`. :bug:`2741`
91+
* Fixed an issue where images would be resized according to their longest edge,
92+
instead of their width. Thanks to :user:`sekjun9878`. :bug:`2729`
9193

9294
For developers:
9395

0 commit comments

Comments
 (0)