Cloudfare Image Optimisation URL Format

I would like to implement Cloudfare’s Image Optimisation feature, which allows to convert and resize images by making requests through a specifically formatted URL as specified here in their documentation.

The format is:

https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>

i.e

<img src="website.com/cdn-cgi/image/width=80,quality=75/uploads/avatar1.jpg" />

Is there a way to set this up globally?

If anyone has prior experience in configuring this, I would greatly appreciate any insights or advice you can provide!

Thanks in advance

Check out this recipe: Kirby loves CDN | Kirby CMS

While for KeyCDN specifically, the same procedure applies to all types of CDN