Can I use a different CDN with ShortPixel Adaptive Images?

Important note: ShortPixel Adaptive Images works correctly out-of-the-box, so configuring it to work with your own CDN should only be done if you have a good technical knowledge.

If you want to use a different CDN than the default when using ShortPixel Adaptive Images, then please:

  1. Edit your DNS records and add a CNAME from "" to ""
    1. On the previous URL, replace "" with your actual domain name.
    2. If "" is already being used on your DNS records, you can change it for whatever you want, like "" or "".
  2. On Settings > ShortPixel AI > Advanced > API URL, enter the following URL, replacing "" with your actual domain name:

    Please note that if you're not using Cloudflare as CDN, then your CDN should be able to handle the SSL certificate so you can have the API URL with https. If they cannot handle this, a certificate error will occur and only http will work. 

    Also, please also note that in case your CNAME is something else like "images" or "img" (following the previous example), make sure to also put it here instead of "cdn".


Here is a step-by-step example on how to set up the CNAME (previous step 1) on Cloudflare. Please notice that we are not responsible for any changes made by Cloudflare that would invalidate the following steps. Therefore, if you encounter any issues while creating your new CNAME in your DNS records, please contact your CDN or hosting provider.

  1. Enter your Cloudflare account
  2. Select the DNS tag from the top menu.

  3. Add a new record following this example. 

    Remember that "" should be changed to your actual domain. Make sure the cloud is orange so you can use the CDN features offered by Cloudflare.

Important: after setting up your own CDN make sure the new record works as expected with an online tool like this one

Still need help? Contact Us Contact Us