X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/74488bcce98f59ac255fa342ff61def2251ebdb5..5e5a4f6dda72dde881e684a064330ccbc5c02589:/apps/sponsors/processors.py?ds=sidebyside diff --git a/apps/sponsors/processors.py b/apps/sponsors/processors.py index d954bf622..8c3d74c6a 100644 --- a/apps/sponsors/processors.py +++ b/apps/sponsors/processors.py @@ -6,7 +6,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