]> git.0d.be Git - django-panik-emissions.git/blobdiff - emissions/utils.py
fix png check
[django-panik-emissions.git] / emissions / utils.py
index 6dbdd53f5f10d9bc1ed704eb3416b54933f29933..14773140a60615cac9ba48560e4ff8b6e5efcf1c 100644 (file)
@@ -58,7 +58,7 @@ def maybe_resize(image_path):
             white_bg = Image.new('RGBA', image.size, (255, 255, 255, 255))
             image = Image.alpha_composite(white_bg, image)
             image = image.convert('RGB')
-        if image_path.endwith('.png'):
+        if image_path.endswith('.png'):
             # make sure png files are always RGB
             # (it happened cmyk jpeg files were uploaded with a .png extension and that would fail)
             image = image.convert('RGB')