Image URL Transformation is not working

I want to be able to optimize (resize, compress, etc.) images using the “Transform via URL” service; however, I can’t figure out how to get it to work.

  • I just bought a domain name via Cloudflare.
  • I do not have any A records setup with this domain
  • I do not have this domain pointing to any application
  • I enabled Transforms for that domain name/zone
  • I am on the Free plan

I followed this URL format as listed in the article, but I just get a “server IP address could not be found” error from Google Chrome:

https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>,height=150, quality=75/

What am I missing?

  • I do not have image storage configured. I will be storing images on a remote server (e.g. S3 Bucket)
  • I have “Resize from any origin” enabled/checked for this domain/zone

what kind of response do you see? as for A/AAAA records, try to add AAAA with “100::”

see Create A/AAAA records for URL forwarders? - #5 by max25

I get a “Could not resolve host” response. In most cases, it makes sense that I would receive that error response since I didn’t add any A/AAAA records.

I think a better way to explain my misunderstanding is that I am new to Cloudflare, and I only need to use their image optimization service. I already have an app hosting with Digital Ocean, and all of my images are stored in Digital Ocean.

I just needed an image optimization service/API, so I am trying to use Cloudflare.

There Transformations article made it seem like I only needed to purchase a domain name with Cloudflare, and pass a URL of an image to that domain name along the “cdn-cgi” path.

This is probably a misunderstanding on my part.

This topic was automatically closed after 15 days. New replies are no longer allowed.