Move Pillow initialization
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -74,6 +74,8 @@
|
||||
* Move language choices generation to documents.utils.
|
||||
* Remove support for generating documents images in base 64
|
||||
format.
|
||||
* Move Pillow initialization from the module to the backend
|
||||
class initialization.
|
||||
|
||||
3.1.11 (2019-04-XX)
|
||||
===================
|
||||
|
||||
@@ -106,6 +106,8 @@ Other changes
|
||||
* Move language choices generation to documents.utils.
|
||||
* Remove support for generating documents images in base 64
|
||||
format.
|
||||
* Move Pillow initialization from the module to the backend
|
||||
class initialization.
|
||||
|
||||
Removals
|
||||
--------
|
||||
|
||||
@@ -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