Commit 97861a26 authored by Jobin Rezai's avatar Jobin Rezai

Update comments

parent 7a6524e4
......@@ -318,10 +318,12 @@ def resize_image(source_image_path, resize_instructions,
else:
# There is an issue with the new width and/or new height
# new_width and/or new_height are zero (0)
# No resize has taken place, even though we were asked to do a resize
# This will happen if the user is attempting to decrease the size of the image by percentage,
# This will happen if the user is attempting to decrease the size of the image by-percentage,
# but the source image is too small to decrease it by the asked-percentage.
# Example: an image 1x1 in dimensions cannot be made smaller by 99 percent.
return f"Error: {source_image_path} cannot resize to {new_width} width by {new_height} height"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment