https://github.com/mecanik/bunny-image-optimizer-worker
Bunny Image Optimizer Worker (Cloudflare)
https://github.com/mecanik/bunny-image-optimizer-worker
bunnycdn cloudflare-workers image-manipulation image-optimization image-optimizer image-processing image-resizing resize-image resize-images wordpress
Last synced: about 1 month ago
JSON representation
Bunny Image Optimizer Worker (Cloudflare)
- Host: GitHub
- URL: https://github.com/mecanik/bunny-image-optimizer-worker
- Owner: Mecanik
- License: apache-2.0
- Created: 2024-03-16T08:01:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T08:14:38.000Z (about 2 years ago)
- Last Synced: 2025-01-10T17:49:17.081Z (over 1 year ago)
- Topics: bunnycdn, cloudflare-workers, image-manipulation, image-optimization, image-optimizer, image-processing, image-resizing, resize-image, resize-images, wordpress
- Language: JavaScript
- Homepage: https://mecanik.dev/en/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Bunny Image Optimizer Cloudflare Worker
Rewrites your images on the fly using [Cloudflare Workers®](https://workers.cloudflare.com/) using the [Bunny Dynamic Image Processing](https://bunny.net/optimizer/transform-api/) service.
Currently supports only WordPress, more coming soon.
## Current features
* Rewrites all src and srcset tags.
* Rewrites all div tags with style, data-ultimate-bg, data-image-id attributes and more.
* Rewrites all link tags for icons (apple-touch-icon, etc.).
* Rewrites all special/extra data-src, data-srcset, data-lazyload attributes and more.
* Rewrites all href tags for light boxes/image viewers.
* Rewrites all background image url's for all inline CSS.
* Rewrites all background image url's for all external CSS.
* BONUS: Removes empty SVG tags added by WordPress for no reason.
* BONUS: Rewrites all src and srcset tags in Ajax requests.
* BONUS: Supports multiple WordPress websites under the same Worker.
### Assistance
In your are in immediate need of commercial help/advice/assistance, I can offer you my assistance for a small fee.
Please do contact me via my the [consultation page](https://mecanik.dev/en/consulting/) or if you cannot do so open an issue.
### Contribution
Feel free to contribute with your own functions/methods. Just make sure you tested it properly, otherwise your changes will not be approved.
### Support me
Buy me a coffee to give me more energy and write more code :)