diff --git a/image_cropping/thumbnail_processors.py b/image_cropping/thumbnail_processors.py index 09897a48..82f58bff 100644 --- a/image_cropping/thumbnail_processors.py +++ b/image_cropping/thumbnail_processors.py @@ -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)