Make sure all images are converted to RGB before processing.

This commit is contained in:
Roberto Rosario
2015-09-15 02:01:56 -04:00
parent a598aef662
commit d6a3111d69
2 changed files with 2 additions and 2 deletions

View File

@@ -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)