From fbc2862ff06a4948364afe7a366516b51a98af8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Kocha=C5=84ski?= Date: Mon, 1 Nov 2021 18:35:45 +0100 Subject: [PATCH] Improve style and clarity of comments --- beets/util/artresizer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py index 1ab689b04..f9381f6c4 100644 --- a/beets/util/artresizer.py +++ b/beets/util/artresizer.py @@ -77,8 +77,8 @@ def pil_resize(maxwidth, path_in, path_out=None, quality=0, max_filesize=0): # Use PIL's default quality. quality = -1 - # progressive=False only affects JPEG writter and is the default - # leaving for explicitness + # progressive=False only affects JPEGs and is the default, + # but we include it here for explicitness. im.save(util.py3_path(path_out), quality=quality, progressive=False) 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 # than the given width while maintaining the aspect ratio # 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 + [ util.syspath(path_in, prefix=False), '-resize', f'{maxwidth}x>',