Skip to content

Proxying Images

If your images are already being served from somewhere (like an existing WordPress site), letting PicPerf proxy your images is the quickest way to begin optimizing them. It’s simple to set up. This assumes you’ve already created an account.

Set the domain from where you normally serve images. For example, if my image usually lives at https://macarthur.me/some-image.jpg, your domain would be macarthur.me. Some websites serve from multiple domains. That’s fine! Add them all. If you don’t, optimization requests will be ignored, and you’ll be served the original, unoptimized version.

Wildcards are supported, by the way! For example, *.macarthur.me would match against any of the following URLs:

  • https://prod.macarthur.me/img.jpg
  • https://test.macarthur.me/img.jpg
  • https://www.macarthur.me/img.jpg

For each image on your site, stick https://picperf.io at the beginning. For example, https://macarthur.me/some-image.jpg becomes https://picperf.io/https://macarthur.me/some-image.jpg.

There are a few integrations that’ll prefix your images for you, making setup even easier.

With all that in place, images will get optimized in the background as soon as they start getting some traffic. For more on details on that process, read about what to expect.