cropper = CustomCroppingEngine()
+
@register.inclusion_tag('picture/picture_wide.html', takes_context=True)
def picture_wide(context, picture):
context.update({
area.picture.image_file,
geometry,
crop="%dpx %dpx %dpx %dpx" % tuple(map(lambda d: max(0, d), tuple(coords[0] + coords[1]))))
+ except ZeroDivisionError:
+ return ''
except Exception, e:
logging.exception("Error creating a thumbnail for PictureArea")
return ''