Skip to content

Upload your images assets to Cloudflare Images from Craft CMS assets interface. Configure Craft's transform to use it.

License

Notifications You must be signed in to change notification settings

DeuxHuitHuit/craft-cloudflare-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craft CMS Cloudflare Images

This plugin offers a easy way to upload your images assets to Cloudflare Images from Craft CMS assets interface. It exposes the a file system and supports craft image transforms.

Installation:

  1. Install with composer
composer require deuxhuithuit/craft-cloudflare-images
  1. Install in craft
craft plugin/install cloudflare-images
  1. Add your account id, account hash and api token in the settings. Those can be found in your Cloudflare dashboard. We recommend to use env vars for this.

  2. Go in craft and create a new File System using the Cloudflare Image FS. Also create a new Volume that uses this FS. It can be used as the main FS, or simply as a transform FS in an existing Volume.

  3. Make sure Flexible Variants are enabled in your Cloudflare dashboard (see https://developers.cloudflare.com/images/cloudflare-images/transform/flexible-variants/)

  4. Profit!

Made with ❤️ in Montréal.

(c) Deux Huit Huit