Skip to content

kopimao/cloudflare-image-resizing-worker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Image Resizing worker for WordPress

Rewrites images on the fly so you can use the Cloudflare Image Resizing service.

This is an alternative solution to my WordPress plugin.

Please read my full article to learn more: 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 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 :)

About

Cloudflare Image Resizing worker for WordPress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%