TextformatterImgDataUri by BitPoet

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


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.


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.


  • 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.


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 #531
    In the 531st issue of ProcessWire Weekly we’ll check out the latest weekly update from Ryan, introduce new third party modules, and more. Read on!
    Weekly.pw / 13 July 2024
  • Page List Custom Children module
    This simple module gives you the ability to customize the parent/child relationship as it appears in the admin page list, enabling child pages to appear under more than one parent.
    Blog / 28 June 2024
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK