#NEWLINE# def get_options( self , thumbnail_options , **kwargs ) : #NEWLINE# #INDENT# '\n        Get the thumbnail options that includes the default options for this\n        thumbnailer (and the project-wide default options).\n        ' #NEWLINE# if isinstance ( thumbnail_options , ThumbnailOptions ) : #NEWLINE# #INDENT# return thumbnail_options #NEWLINE# #UNINDENT# args = [ ] #NEWLINE# if ( thumbnail_options is not None ) : #NEWLINE# #INDENT# args . append ( thumbnail_options ) #NEWLINE# #UNINDENT# opts = ThumbnailOptions ( * args , ** kwargs ) #NEWLINE# if ( 'quality' not in thumbnail_options ) : #NEWLINE# #INDENT# opts [ 'quality' ] = self . thumbnail_quality #NEWLINE# #UNINDENT# return opts