TextformatterImgDataUri by BitPoet

Replace image URLs in HTML body with their encoded data URL to speed up page loads

TextformatterImgDataUri

Output small images as data URLs in ProcessWire CMS

Instead of linking to each image, the module outputs the actual image data inside the HTML in the form of a data: URL. This can speed up the loading of pages by reducing the number of requests, especially when page caching is active.

Status

This is a proof-of-concept module. Since I'm not actively using it, I have to rely on you to report any issues you find.

Usage

  • Install the module by downloading the zip and extracting it into site/modules in your ProcessWire installation;
  • Configure the maximum size of images that should be included as data URLs in the source code;
  • Add TestformatterImgDataUri in the configuration of the textarea fields this should be applied to.

License

Licensed under the Unlicense (see LICENSE for details).

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #558
    In the 558th issue of ProcessWire Weekly we'll check out the blog post that introduces ProcessWire 3.0.244, share some recent ProcessWire highlights, and more. Read on!
    Weekly.pw / 18 January 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer