Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Mecanik/cloudflare-image-resizing-worker
Cloudflare Image Resizing worker for WordPress
https://github.com/Mecanik/cloudflare-image-resizing-worker
cloudflare cloudflare-image-resizing cloudflare-workers image-resizing resize-image resize-images wordpress
Last synced: 3 months ago
JSON representation
Cloudflare Image Resizing worker for WordPress
- Host: GitHub
- URL: https://github.com/Mecanik/cloudflare-image-resizing-worker
- Owner: Mecanik
- License: apache-2.0
- Created: 2023-01-31T10:49:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T08:15:22.000Z (10 months ago)
- Last Synced: 2024-08-01T19:32:07.344Z (6 months ago)
- Topics: cloudflare, cloudflare-image-resizing, cloudflare-workers, image-resizing, resize-image, resize-images, wordpress
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 35
- Watchers: 7
- Forks: 8
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare Image Resizing worker for WordPress
Rewrites images on the fly so you can use the [Cloudflare Image Resizing](https://blog.cloudflare.com/announcing-cloudflare-image-resizing-simplifying-optimal-image-delivery/) service.This is an alternative solution to my [WordPress](https://github.com/Mecanik/cloudflare-image-resizing) plugin.
Please read my full article to learn more: [Cloudflare Image Resizing for WordPress](https://mecanik.dev/en/posts/cloudflare-image-resizing-for-wordpress/).
## Current features
* Rewrites all src and srcset tags
* Rewrites all div tags with style, data-ultimate-bg, data-image-id attributes
* Rewrites all link tags for icons
* Rewrites all special/extra data-src, data-srcset, data-lazyload attributes
* Rewrites all href tags for light boxes
* 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### 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.### Special Thanks
These are the people that spent time and effort to test and help improve the plugin, as well as sponsoring development.
### Support me
Buy me a coffee to give me more energy and write more code :)