If you've been to our website or used our app, you've probably seen team logos or player headshots that were provided by our API. Our API provides vector or high resolution graphics for all of our images. To conserve bandwidth, our front-ends use an image proxy to downscale images appropriately.
For example, here's the full resolution picture of the Apollos QB Garret Gilbert:
That's a 4416x3052, 2.84 MB JPEG image. That's way higher resolution than we need and way too big to make users download every time they visit our website.
That image's URL:
Instead of using that URL to download the image, we use an image proxy URL to get a more appropriately scaled version:
This URL indicates to the image proxy that we want a version of the image that will fill a 150x150 pixel square. And the result:
Today, our image proxy can be found at github.com/theaaf/image-proxy. It can be deployed serverlessly to AWS and used for any website.