1. Bernardo Cabezas Serra
  2. cmsplugin-nivoslider

Source

cmsplugin-nivoslider / cmsplugin_nivoslider / thumbnail_processors.py

Diff from to

File cmsplugin_nivoslider/thumbnail_processors.py

  • Ignore whitespace
         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))