diff --git a/pilkit/processors/utils.py b/pilkit/processors/utils.py index a0d08ed..587ee5b 100644 --- a/pilkit/processors/utils.py +++ b/pilkit/processors/utils.py @@ -29,4 +29,9 @@ def resolve_palette(image): if image.palette is None: return image - return image.convert(image.palette.mode) \ No newline at end of file + + has_transparency = "transparency" in image.info + mode = image.palette.mode + if mode == "RGB" and has_transparency: + mode = "RGBA" + return image.convert(mode)