

@app.route('/direct/<path:url>')
def direct(url):
    kwargs = {
        
    }
    for key in ('width', 'height', 'mode', 'quality', 'transform'):
        value = (request.args.get(key) or request.args.get(key[0]))
        if (value is not None):
            value = (int(value) if value.isdigit() else value)
            kwargs[value] = value
    return redirect(images.build_url(url, **kwargs))

dataset/ETHPy150Open mikeboers/Flask-Images/demo/main.py direct/VarMisuse@96/115 `key`->`value`