{"repo":"miantiao-me/cloudflare-worker-image","free":true,"listed":false,"github":"https://github.com/miantiao-me/cloudflare-worker-image","clone":"git clone https://github.com/miantiao-me/cloudflare-worker-image.git","description":"使用 Cloudflare Worker + Container 处理图片, 依赖 Photon，支持缩放、剪裁、水印、滤镜等功能。","language":"Rust","stars":377,"topics":["cloudflare","image","worker","cloudflare-workers","image-processing","cloudflare-containers","containers"],"license":"Apache-2.0","category":"media-processing","readme_excerpt":"Cloudflare Worker Image 使用 Cloudflare Worker + Container 处理图片, 依赖 Photon，支持缩放、剪裁、水印、滤镜等功能。 [!TIP] 纯 Worker 版本见 v1 分支。 --- 已经适配了 Vercel Edge, 见 。 支持特性 1. 支持 PNG、JPEG、BMP、ICO、TIFF 等格式图片处理 2. 可输出 JPEG、PNG、WEBP、AVIF 等格式图片 3. 支持管道操作，可以执行多个操作 4. 支持 Cloudflare 缓存 5. 支持图片地址白名单，防滥用 6. 异常降级，如果处理失败返回原图（异常场景不缓存） 部署方式 使用方式 修改域名和参数即可使用, 参考： 参数说明 url: 原图地址，需要使用 encodeURIComponent 编码 action: 操作指令, 支持 Photon 各种操作指令，指令与参数直接使用 ! 分割，参考 resize!830,400,2 支持管道操作，多个操作指令使用 分割，参考 resize!830,400,2 watermark!https%3A%2F%2Fstatic.miantiao.me%2Fshare%2F6qIq4w%2FFhSUzU.png,10,10 如果参数中有 URL 或其他特殊字符，需要使用 encodeURIComponent 编码 URL 和 特殊字符 format: 输出图片格式，支持： jpg,webp,png ，可选，默认 webp quality: 图片质量，1-100 只有 webp 和 jpg 格式支持，可选，默认 99 演示 缩放+旋转+文字水印 由于 Github 会缓存图片，请前往我博客查看真实示例。 致谢 - Cloudflare - photon - jSquash ---","default_branch":null,"files":null,"tree":[],"storefront":"/r/miantiao-me","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/miantiao-me/cloudflare-worker-image/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}