def thumbnail(self, width, height=None, crop=False):
        width = int(width)
        if height is not None:
            height = int(height)
        return make_thumbnail(_require_ctx(self),
            self.attachment_filename, self.url_path,
            width=width, height=height, crop=crop)
Utility to create thumbnails.
dataset/ETHPy150Open lektor/lektor/lektor/db.py/Image.thumbnail