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