cloudflare-images via wordpress API

How can i implement cloudflare Images via API
No description
3 Replies
digitalpoint
digitalpoint5mo ago
What exactly are you trying to do? If you want Cloudflare to do image transforms on images you have on your server, you just use a different URL for the images. See: https://developers.cloudflare.com/images/transform-images/transform-via-url/
Cloudflare Docs
Transform via URL · Cloudflare Image Optimization docs
You can convert and resize images by requesting them via a specially-formatted URL. This way you do not need to write any code, only change HTML …
digitalpoint
digitalpoint5mo ago
If you want to upload images from WordPress to Cloudflare, the API docs for that are here: https://developers.cloudflare.com/api/operations/cloudflare-images-upload-an-image-via-url
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
digitalpoint
digitalpoint5mo ago
If you aren't trying to do image transforms (you just want Cloudflare to "host" your images) you can save yourself a lot of time/programmingh work by using this to have your WordPress media stored in Cloudflare R2: https://appforcf.com/items/app-for-cloudflare%C2%AE-pro.1/
App for Cloudflare
App for Cloudflare® Pro
Important This plugin is an extension of the free version that is available on WordPress.org (you need the free versions installed in order to use this plugin). Everything is available from within WordPress (you do not need to go to Cloudflare for things) via the Cloudflare API. This allows you...