@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, e:
        task_log.error("Error saving userpic: %s" % e)
Resizes userpics to 200x200
dataset/ETHPy150Open mozilla/addons-server/src/olympia/users/tasks.py/resize_photo