[FIX] use png as for pillow interchange

This commit is contained in:
Holger Brunn 2018-02-04 08:02:54 +01:00
parent 60fb31e29f
commit f19573a7a0
No known key found for this signature in database
GPG Key ID: 01C9760FECA3AE18

View File

@ -42,7 +42,7 @@ class IrAttachment(models.Model):
else:
image_data = StringIO()
try:
Image.open(StringIO(data)).save(image_data, 'tiff',
Image.open(StringIO(data)).save(image_data, 'png',
dpi=(dpi, dpi))
except IOError:
_logger.exception('Failed to OCR image')