Merge branch 'master' of http://github.com/fnp/wolnelektury
[wolnelektury.git] / apps / sponsors / processors.py
index d954bf6..112241d 100644 (file)
@@ -1,3 +1,7 @@
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
 from PIL import Image, ImageFilter, ImageChops
 
 
@@ -6,7 +10,8 @@ def add_padding(image, requested_size, opts):
         padded_image = Image.new('RGBA', requested_size, '#fff')
         width, height = image.size
         requested_width, requested_height = requested_size
-        padded_image.paste(image, (0, requested_height - height / 2))
+        print 'whatever'
+        padded_image.paste(image, (0, (requested_height - height) / 2))
         return padded_image
     return image