@task
@set_modified_on
def resize_photo(src, dst, locally=False, **kw):
 task_log.debug(('[1@None] Resizing photo: %s' % dst))
 try:
  resize_image(src, dst, (200, 200), locally=locally)
  return True
 except Exception as e:
  task_log.error(('Error saving userpic: %s' % e))

@ task @ set_modified_on def resize_photo ( src , dst , locally = False , ** kw ) : task_log . debug ( ( '[1@None] Resizing photo: %s' % dst ) ) try : resize_image ( src , dst , ( 200 , 200 ) , locally = locally ) return True except Exception as e : task_log . error ( ( 'Error saving userpic: %s' % e ) )
resizes userpics to 200x200 .