承接 deuxhuithuit/craft-cloudflare-images 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deuxhuithuit/craft-cloudflare-images

最新稳定版本:2.2.3

Composer 安装命令:

composer require deuxhuithuit/craft-cloudflare-images

包简介

Upload your images assets to Cloudflare Images from Craft CMS assets interface. It exposes the a file system and supports craft image transforms.

README 文档

README

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/). By default, Cloudflare Images do not generate publicly accessible images. Enabling flexible variants will generate publicly accessible images and allow for craft image transform to work. The public url is accessible via the $asset->cloudflareImagesUrl() method. If flexible variants are not enabled, the image is only accessible via Craft's Control Panel.

  4. Profit!

Made with ❤️ in Montréal.

(c) Deux Huit Huit

统计信息

  • 总下载量: 327
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-10-30