Make sure all images are converted to RGB before processing.
This commit is contained in:
@@ -93,7 +93,7 @@ class Python(ConverterBase):
|
||||
file_object.seek(0)
|
||||
else:
|
||||
try:
|
||||
image = Image.open(self.file_object)
|
||||
image = Image.open(self.file_object).convert('RGB')
|
||||
except IOError as exception:
|
||||
error_message = _('Exception determining PDF page count; %s') % exception
|
||||
logger.error(error_message)
|
||||
|
||||
Reference in New Issue
Block a user