Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions image_cropping/thumbnail_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def crop_corners(image, box=None, **kwargs):
width = abs(box[2] - box[0])
height = abs(box[3] - box[1])
if width and height and (width, height) != image.size:
png_info = image.info
image = image.crop(box)
image.info = png_info
else:
logger.warning(
'"box" parameter requires four values. Ignoring "%r".' % box)
Expand Down