#NEWLINE# def valid_processor_options( processors = None ) : #NEWLINE# #INDENT# '\n    Return a list of unique valid options for a list of image processors\n    (and/or source generators)\n    ' #NEWLINE# if ( processors is None ) : #NEWLINE# #INDENT# processors = [ dynamic_import ( p ) for p in ( settings . THUMBNAIL_PROCESSORS + settings . THUMBNAIL_SOURCE_GENERATORS ) ] #NEWLINE# #UNINDENT# valid_options = set ( [ 'size' , 'quality' , 'subsampling' ] ) #NEWLINE# for processor in processors : #NEWLINE# #INDENT# args = inspect . getargspec ( processor ) [ 0 ] #NEWLINE# valid_options . update ( args [ 1 : ] ) #NEWLINE# #UNINDENT# return list ( valid_options )