Last Update: Fri, 04 Feb 2022 18:31:04
• ADS
• CSS
• EXCEL
• SCRIPTS
• SEO
• WEBSITE-MONITORING-AND-BACKUP
Once we've uploaded image to cloudflare, we can serve the image using URL: https://imagedelivery.net/<ACCOUNT_HASH>/<IMAGE_ID>/<VARIANT_NAME>
where Account_Hash will be obtained from Cloudflare Image dashboard (image delivery url & it is fixed for all images within the same account), Image_id will obtained when you upload image through API or click "Edit" button following each image:
Image delivery is supported from all customer domains under the same Cloudflare account. To serve images through custom domains, an image URL should be adjusted to the following format:
https://example.com/cdn-cgi/imagedelivery/<ACCOUNT_HASH>/<IMAGE_ID>/<VARIANT_NAME>E.g. The Image https://imagedelivery.net/iVrn1HvcgDip3hqrPN_ltQ/81bb1b75-3421-444b-8a85-252b5a433500/w=600,h=400,fit=cover,gravity=bottom,brightness=1.2,gamma=1.2 should also be served from custom domain online-bazar.in by https://online-bazar.in/cdn-cgi/imagedelivery/iVrn1HvcgDip3hqrPN_ltQ/81bb1b75-3421-444b-8a85-252b5a433500/w=600,h=400,fit=cover,gravity=bottom,brightness=1.2,gamma=1.2
We can delete any image from Coudflare using API. For this we need image_id only.
Delete Image PHP script
When we run it, it gives following response: