diff --git a/thumbor_rekognition/__init__.py b/thumbor_rekognition/__init__.py index b77edeb..4345c77 100644 --- a/thumbor_rekognition/__init__.py +++ b/thumbor_rekognition/__init__.py @@ -42,7 +42,7 @@ def read_jpeg_bytes(self): """ bio = BytesIO() - self.context.modules.engine.image.save(bio, 'JPEG') + self.context.modules.engine.image.convert('RGB').save(bio, 'JPEG') return bio.getvalue() def size(self):