Move Pillow initialization

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-15 16:00:55 -04:00
parent 811a752efb
commit 58813310b7
3 changed files with 7 additions and 1 deletions

View File

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