@task
@set_modified_on
def resize_icon(src, dst, locally=False, **kw):
 log.info(('[1@None] Resizing icon: %s' % dst))
 try:
  resize_image(src, dst, (32, 32), locally=locally)
  return True
 except Exception as e:
  log.error(('Error saving collection icon: %s' % e))

@ task @ set_modified_on def resize_icon ( src , dst , locally = False , ** kw ) : log . info ( ( '[1@None] Resizing icon: %s' % dst ) ) try : resize_image ( src , dst , ( 32 , 32 ) , locally = locally ) return True except Exception as e : log . error ( ( 'Error saving collection icon: %s' % e ) )
resizes collection icons to 32x32 .