Move Pillow initialization
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -67,7 +67,6 @@ try:
|
||||
except sh.CommandNotFound:
|
||||
pdfinfo = None
|
||||
|
||||
Image.init()
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -82,6 +81,9 @@ class IteratorIO(object):
|
||||
|
||||
|
||||
class Python(ConverterBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(Python, self).__init__(*args, **kwargs)
|
||||
Image.init()
|
||||
|
||||
def convert(self, *args, **kwargs):
|
||||
super(Python, self).convert(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user