#NEWLINE# def thumbnail( self , width , height = None , crop = False ) : #NEWLINE# #INDENT# 'Utility to create thumbnails.' #NEWLINE# width = int ( width ) #NEWLINE# if ( height is not None ) : #NEWLINE# #INDENT# height = int ( height ) #NEWLINE# #UNINDENT# return make_thumbnail ( _require_ctx ( self ) , self . attachment_filename , self . url_path , width = width , height = height , crop = crop )