django - easy-thumbnails: Using the scale_and_crop image processor in a thumbnail alias -


i can't figure out proper format use in specifying specs scale_and_crop image processor in thumbnail alias.

i've tried many variations, one:

'year_thumb': {     'scale_and_crop': (         ('size', (120, 0)),         ('crop', 'scale'),         ('upscale', true),     ) }, 

not sure how right.

so, unfortunately never reconciled setting of image processor arguments in code vs. in thumbnail alias settings, here's how accomplished same, or similar thing:

'year_thumb': {     'size': (120, 0),     'autocrop': true,     'crop': 'smart',     'upscale': true, }, 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -