Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Oct 17, 2023
1 parent 04b0642 commit b0fa647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plone/scale/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def scaleImage(
The `width`, `height`, `mode` parameters will be passed to
:meth:`scalePILImage`, which performs the actual scaling.
The generated image is a JPEG image, unless the original is a PNG or GIF
image. This is needed to make sure alpha channel information is
The generated image is a JPEG image, unless the original is a WEBP, PNG
or GIF image. This is needed to make sure alpha channel information is
not lost, which JPEG does not support.
"""
if isinstance(image, (bytes, str)):
Expand Down Expand Up @@ -113,7 +113,7 @@ def scaleImage(
else:
# All other formats only process a single frame
if format_ not in ("PNG", "GIF", "WEBP"):
# Always generate JPEG, except if format is PNG or GIF.
# Always generate JPEG, except if format is WEBP, PNG or GIF.
format_ = "JPEG"
image, format_ = scaleSingleFrame(
img,
Expand Down

0 comments on commit b0fa647

Please sign in to comment.