mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 00:53:08 +01:00
Improve style and clarity of comments
This commit is contained in:
parent
1a130059e8
commit
fbc2862ff0
1 changed files with 4 additions and 3 deletions
|
|
@ -77,8 +77,8 @@ def pil_resize(maxwidth, path_in, path_out=None, quality=0, max_filesize=0):
|
||||||
# Use PIL's default quality.
|
# Use PIL's default quality.
|
||||||
quality = -1
|
quality = -1
|
||||||
|
|
||||||
# progressive=False only affects JPEG writter and is the default
|
# progressive=False only affects JPEGs and is the default,
|
||||||
# leaving for explicitness
|
# but we include it here for explicitness.
|
||||||
im.save(util.py3_path(path_out), quality=quality, progressive=False)
|
im.save(util.py3_path(path_out), quality=quality, progressive=False)
|
||||||
|
|
||||||
if max_filesize > 0:
|
if max_filesize > 0:
|
||||||
|
|
@ -129,7 +129,8 @@ def im_resize(maxwidth, path_in, path_out=None, quality=0, max_filesize=0):
|
||||||
# "-resize WIDTHx>" shrinks images with the width larger
|
# "-resize WIDTHx>" shrinks images with the width larger
|
||||||
# than the given width while maintaining the aspect ratio
|
# than the given width while maintaining the aspect ratio
|
||||||
# with regards to the height.
|
# with regards to the height.
|
||||||
# no interlace seems to be default, specify for explicitness
|
# ImageMagick already seems to default to no interlace, but we include it
|
||||||
|
# here for the sake of explicitness.
|
||||||
cmd = ArtResizer.shared.im_convert_cmd + [
|
cmd = ArtResizer.shared.im_convert_cmd + [
|
||||||
util.syspath(path_in, prefix=False),
|
util.syspath(path_in, prefix=False),
|
||||||
'-resize', f'{maxwidth}x>',
|
'-resize', f'{maxwidth}x>',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue