Commits

Bertrand Bordage committed ceae343

Fixes another strange crash in pad_image.

Comments (0)

Files changed (1)

cmsplugin_nivoslider/thumbnail_processors.py

         return image
 
     # Black background
-    new_image = Image.new('RGBA', new_image_size)
+    new_image = image.resize(new_image_size)
+    new_image.paste((0, 0, 0, 0))
 
     new_image.paste(image, (left, top))