diff --git a/openerp/tools/image.py b/openerp/tools/image.py index 952d6b25c4c..05f077d572b 100644 --- a/openerp/tools/image.py +++ b/openerp/tools/image.py @@ -10,6 +10,10 @@ from PIL import Image from PIL import ImageEnhance from random import randrange +# Preload PIL with the minimal subset of image formats we need +Image.preinit() +Image._initialized = 2 + # ---------------------------------------- # Image resizing # ----------------------------------------