From 77d7681bb10ce68dce33a3bd58f1c009bba6c833 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 20 Mar 2020 19:16:14 +0100 Subject: [PATCH] Image should be converted to RGB before saved. --- processor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/processor.py b/processor.py index bda8ea6..6afaaa2 100644 --- a/processor.py +++ b/processor.py @@ -38,6 +38,7 @@ def processImage(file, outputPath=None): temp.thumbnail(size['dimensions'], Image.LANCZOS) filename = generateFilename(fileID, size['name'], outputPath) + temp = temp.convert("RGB") temp.save(filename) return {