Module ImportFrom alias ImportFrom alias TryExcept body Import alias Import alias Import alias Import alias Import alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Dict ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Str NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad BinOpDiv Call NameLoad NameLoad NameLoad BinOpDiv Call NameLoad NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad Num Assign NameStore Call NameLoad BinOpDiv NameLoad Num If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad NameLoad Num Call NameLoad BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Num Call NameLoad NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad orelse Assign NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr attr NameLoad orelse If BoolOpAnd UnaryOpNot CompareEq NameLoad Num UnaryOpNot CompareEq NameLoad Num body Assign NameStore Call NameLoad BinOpDiv Call NameLoad NameLoad NameLoad BinOpDiv Call NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore BinOpDiv Call NameLoad NameLoad NameLoad orelse Assign NameStore BinOpDiv Call NameLoad NameLoad NameLoad Assign NameStore TupleLoad Call NameLoad Call NameLoad BinOpMult NameLoad NameLoad Call NameLoad Call NameLoad BinOpMult NameLoad NameLoad Print NameLoad If BoolOpOr CompareGt SubscriptLoad NameLoad Index Num NameLoad CompareGt SubscriptLoad NameLoad Index Num NameLoad body If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Num Num body Expr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpSub Num BinOpMult Num NameLoad Assign NameStore Call NameLoad BinOpMult Num NameLoad Assign NameStore BinOpDiv BinOpSub Num NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Num Num For NameStore Call NameLoad Num body If CompareLt NameLoad NameLoad body Assign NameStore Call NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr TupleLoad Num NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Str For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Str body ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad
N/A inspect isclass fnmatch filter N/A N/A N/A Image N/A ImageColor N/A ImageFile N/A ImageFilter N/A ImageEnhance N/A N/A N/A ImportError N/A N/A N/A PIL Image PIL ImageColor PIL ImageFile PIL ImageFilter PIL ImageEnhance N/A N/A N/A ImportError N/A N/A N/A ImportError The Python Imaging Library was not found. N/A filters_by_identifier N/A FilterRegistry N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self builtin_filters N/A N/A N/A self application_filters N/A N/A N/A self project_filters N/A N/A N/A self db_filters N/A N/A N/A self registry_priority N/A N/A self db_filters N/A self project_filters N/A self application_filters N/A self builtin_filters N/A _register N/A N/A self filter library N/A N/A N/A N/A library N/A N/A filter identifier filter N/A N/A filters_by_identifier N/A N/A filter identifier filter N/A register_builtin_filter N/A N/A self filter N/A N/A N/A N/A N/A self _register filter N/A self builtin_filters N/A register_application_filter N/A N/A self filter N/A N/A N/A N/A N/A self _register filter N/A self application_filters N/A register_project_filter N/A N/A self filter N/A N/A N/A N/A N/A self _register filter N/A self project_filters N/A register_db_filter N/A N/A self filter N/A N/A N/A N/A N/A self _register filter N/A self db_filters N/A register N/A N/A self filter N/A N/A N/A N/A N/A self register_project_filter filter N/A get N/A N/A self identifier N/A N/A N/A reg N/A self registry_priority N/A N/A N/A N/A reg has_key identifier N/A N/A N/A reg N/A identifier N/A None N/A N/A N/A library N/A FilterRegistry BaseFilter N/A object N/A N/A identifier base_filter N/A ResizeFilter N/A BaseFilter N/A N/A name Resize to specified dimensions N/A identifier resize_simple render N/A N/A self im size_x size_y crop crop_from upscale N/A 48 48 True top True N/A N/A N/A cur_width cur_height N/A im size N/A N/A new_width new_height N/A size_x size_y N/A crop N/A N/A ratio N/A max N/A N/A float new_width cur_width N/A N/A float new_height cur_height N/A x N/A cur_width ratio N/A y N/A cur_height ratio N/A xd N/A abs N/A new_width x N/A yd N/A abs N/A new_height y N/A x_diff N/A int N/A xd 2 N/A y_diff N/A int N/A yd 2 N/A N/A crop_from top N/A N/A box N/A N/A int x_diff 0 N/A int N/A x_diff new_width new_height N/A N/A N/A crop_from left N/A N/A box N/A 0 N/A int y_diff new_width N/A int N/A y_diff new_height N/A N/A N/A crop_from bottom N/A N/A box N/A N/A int x_diff N/A int yd N/A int N/A x_diff new_width N/A int y N/A N/A N/A crop_from right N/A N/A box N/A N/A int xd N/A int y_diff N/A int x N/A int N/A y_diff new_height N/A N/A box N/A N/A int x_diff N/A int y_diff N/A int N/A x_diff new_width N/A int N/A y_diff new_height N/A im N/A N/A N/A N/A im resize N/A N/A int x N/A int y N/A Image ANTIALIAS crop box N/A N/A N/A N/A N/A new_width 0 N/A N/A new_height 0 N/A N/A ratio N/A min N/A N/A float new_width cur_width N/A N/A float new_height cur_height N/A N/A N/A new_width 0 N/A N/A ratio N/A N/A float new_height cur_height N/A N/A ratio N/A N/A float new_width cur_width N/A new_dimensions N/A N/A int N/A round N/A cur_width ratio N/A int N/A round N/A cur_height ratio N/A new_dimensions N/A N/A N/A N/A new_dimensions N/A 0 cur_width N/A N/A new_dimensions N/A 1 cur_height N/A N/A N/A upscale N/A N/A im N/A im N/A N/A im resize new_dimensions N/A Image ANTIALIAS N/A im N/A N/A N/A N/A N/A library register_builtin_filter ResizeFilter ReflectionFilter N/A BaseFilter N/A N/A name Sexy Web 2.0 reflection filter N/A identifier reflection render N/A N/A self im bgcolor amount opacity N/A #FFFFFF 0.4 0.6 N/A N/A  Returns the supplied PIL Image (im) with a reflection effect
    
        bgcolor  The background color of the reflection gradient
        amount   The height of the reflection as a percentage of the orignal image
        opacity  The initial opacity of the reflection gradient
    
        Originally written for the Photologue image management system for Django
        and Based on the original concept by Bernd Schlapsi
    
         N/A reflection filter N/A background_color N/A N/A ImageColor getrgb bgcolor N/A reflection N/A N/A N/A N/A im copy transpose N/A Image FLIP_TOP_BOTTOM N/A background N/A N/A Image new RGB N/A im size background_color N/A start N/A int N/A 255 N/A 255 opacity N/A steps N/A int N/A 255 amount N/A increment N/A N/A 255 start N/A float steps N/A mask N/A N/A Image new L N/A 1 255 N/A y N/A range 255 N/A N/A N/A y steps N/A N/A val N/A int N/A N/A y increment start N/A N/A val 255 N/A N/A N/A mask putpixel N/A 0 y val N/A alpha_mask N/A N/A mask resize N/A im size N/A reflection N/A N/A Image composite background reflection alpha_mask N/A reflection_height N/A int N/A N/A N/A im size N/A 1 amount N/A reflection N/A N/A reflection crop N/A 0 0 N/A N/A im size N/A 0 reflection_height N/A composite N/A N/A Image new RGB N/A N/A N/A im size N/A 0 N/A N/A N/A im size N/A 1 reflection_height background_color N/A N/A N/A composite paste im N/A 0 0 N/A N/A N/A composite paste reflection N/A 0 N/A N/A im size N/A 1 N/A composite N/A N/A N/A N/A N/A library register_builtin_filter ReflectionFilter N/A 
Create image filter objects for all the built in PIL filters
 N/A n N/A dir ImageFilter N/A N/A klass N/A getattr ImageFilter n N/A N/A N/A isclass klass N/A issubclass klass N/A ImageFilter BuiltinFilter N/A hasattr klass name N/A NewSubclass N/A BaseFilter N/A N/A _pil_filter klass N/A name N/A klass name N/A identifier N/A N/A N/A N/A N/A klass name replace lower render N/A N/A self im N/A N/A N/A N/A N/A im filter N/A self _pil_filter N/A N/A N/A N/A NewSubclass __name__ N/A %s%s N/A N/A klass name Filter N/A N/A N/A library register_builtin_filter NewSubclass