Mention quality level in docstrings

This commit is contained in:
Daniel Barber 2020-02-22 12:02:10 -05:00
parent 96b0e8a33e
commit 15ad525e0d

View file

@ -107,9 +107,11 @@ def embed_album(log, album, maxwidth=None, quiet=False, compare_threshold=0,
def resize_image(log, imagepath, maxwidth, quality):
"""Returns path to an image resized to maxwidth.
"""Returns path to an image resized to maxwidth and encoded with the
specified quality level.
"""
log.debug(u'Resizing album art to {0} pixels wide', maxwidth)
log.debug(u'Resizing album art to {0} pixels wide and encoding at quality
level {1}', maxwidth, quality)
imagepath = ArtResizer.shared.resize(maxwidth, syspath(imagepath),
quality=quality)
return imagepath