Module ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Import alias If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num TryExcept body Assign TupleStore NameStore NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore NameLoad If NameLoad body If CompareLt BinOpDiv NameLoad BinOpDiv NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Assign NameStore BinOpDiv BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Assign NameStore BinOpDiv BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Num handlers ExceptHandler type NameLoad body Return Str Return NameLoad decorator_list AttributeLoad NameLoad attr
N/A django template django.conf settings N/A register N/A N/A template Library thumbnail N/A N/A url size N/A 200x200 N/A N/A 
    Given a URL (local or remote) to an image, creates a thumbnailed version of the image, saving
    it locally and then returning the URL to the new, smaller version. If the argument passed is a
    single integer, like "200", will output a version of the image no larger than 200px wide. If the
    argument passed is two integers, like, "200x300", will output a cropped version of the image that
    is exactly 200px wide by 300px tall.

    Examples:

    {{ story.leadphoto.url|thumbnail:"200" }}
    {{ story.leadphoto.url|thumbnail:"300x150" }}

     N/A os N/A N/A N/A url startswith N/A settings MEDIA_URL N/A N/A url N/A url N/A N/A len N/A settings MEDIA_URL N/A original_path N/A N/A settings MEDIA_ROOT url N/A N/A N/A N/A basename format N/A N/A original_path rsplit . 1 N/A N/A N/A ValueError N/A N/A N/A N/A N/A os path join N/A settings MEDIA_URL url N/A thumbnail N/A N/A N/A N/A basename _t size . format N/A thumbnail_url N/A %s%s N/A N/A settings MEDIA_URL N/A thumbnail N/A N/A len N/A settings MEDIA_ROOT N/A N/A N/A N/A N/A os path exists thumbnail N/A N/A Image N/A N/A N/A image N/A N/A Image open original_path N/A N/A N/A IOError N/A N/A N/A N/A N/A os path join N/A settings MEDIA_URL url N/A original_image N/A N/A image copy N/A original_width N/A N/A original_image size N/A 0 N/A original_height N/A N/A original_image size N/A 1 N/A N/A N/A N/A desired_width desired_height N/A N/A int x N/A x N/A N/A size split x N/A new_size N/A desired_width desired_height N/A crop True N/A N/A N/A ValueError N/A N/A N/A N/A size N/A 0 x N/A N/A desired_height N/A int N/A size N/A 1 N/A new_size N/A original_width desired_height N/A crop False N/A N/A desired_width N/A int size N/A new_size N/A desired_width original_height N/A crop False N/A crop N/A N/A N/A N/A original_height N/A original_width N/A float desired_width desired_height N/A N/A N/A N/A image thumbnail N/A original_width desired_height N/A Image ANTIALIAS N/A N/A N/A N/A image thumbnail N/A desired_width original_height N/A Image ANTIALIAS N/A N/A N/A N/A N/A image size N/A 0 desired_width N/A N/A N/A image size N/A 1 desired_height N/A N/A left N/A N/A N/A N/A image size N/A 0 desired_width 2 N/A top N/A N/A N/A N/A image size N/A 1 desired_height 2 N/A right N/A left desired_width N/A bottom N/A top desired_height N/A cropped_image N/A N/A image crop N/A left top right bottom N/A image cropped_image N/A N/A N/A N/A image thumbnail new_size N/A Image ANTIALIAS N/A N/A N/A N/A N/A image save thumbnail N/A image format quality 85 N/A N/A N/A KeyError N/A N/A N/A thumbnail_url N/A N/A register filter