The Alliance Image Proxy

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:

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:

https://files.platform.aafusercontent.com/tJD7QICu2NRh9Lfq2tZKgMOSUDY

Instead of using that URL to download the image, we use an image proxy URL to get a more appropriately scaled version:

https://images.aafusercontent.com/files.platform.aafusercontent.com/tJD7QICu2NRh9Lfq2tZKgMOSUDY?fill=150x150

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:

Garret Gilbert

Open-Sourced

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.

The Alliance Image Proxy
Share this