<s> from . registry import register <EOL> from . processors import Thumbnail as ThumbnailProcessor <EOL> from . specs import ImageSpec <EOL> class Thumbnail ( ImageSpec ) : <EOL> def __init__ ( self , width = None , height = None , anchor = None , crop = None , upscale = None , ** kwargs ) : <EOL> self . processors = [ ThumbnailProcessor ( width , height , anchor = anchor , <EOL> crop = crop , upscale = upscale ) ] <EOL> super ( Thumbnail , self ) . __init__ ( ** kwargs ) <EOL> register . generator ( '<STR_LIT>' , Thumbnail ) </s>
