1. Ahmad Khayyat
  2. mezzanine

Commits

Stephen McDonald  committed 289c712

pep8 fix

  • Participants
  • Parent commits 74bf2ba
  • Branches default

Comments (0)

Files changed (1)

File mezzanine/core/templatetags/mezzanine_tags.py

View file
     if image.mode not in ("P", "L", "RGBA"):
         image = image.convert("RGBA")
     # Required for progressive jpgs.
-    ImageFile.MAXBLOCK = 2 * max(image.size)**2
+    ImageFile.MAXBLOCK = 2 * (max(image.size) ** 2)
     try:
         image = ImageOps.fit(image, (width, height), Image.ANTIALIAS)
         image = image.save(thumb_path, filetype, quality=quality, **image_info)