def resize_url(url, maxwidth):
 return '{0}?{1}'.format(PROXY_URL, urlencode({'url': url.replace('http://', ''), 'w': maxwidth}))

def resize_url ( url , maxwidth ) : return '{0}?{1}' . format ( PROXY_URL , urlencode ( { 'url' : url . replace ( 'http://' , '' ) , 'w' : maxwidth } ) )
return a proxied image url that resizes the original image to maxwidth .