Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Image Base64 Formatter

This module adds a "Field Formatter" for an Image field, which let's you implement base64 of the image directly.

While most of the code comes from the core module image's ImageFormatter.php, some rewriting with templating has been done. Should be stable.

Project page (download)

https://www.drupal.org/project/image_base64_formatter

Project issues

https://www.drupal.org/project/issues/image_base64_formatter

Maintainer

https://www.drupal.org/u/vuil

Adding base64 encoded images into content pages and rest views directly

Installation and setting up the base64 encoded images on Drupal content pages.

Additional features and options for display (incl. rest) of base64 encoded images

Choose how to serve the image: as plain base64 string, image source (src attribute) of <img> tag or CSS background source url('').

Tags

Guide maintainers

vuil's picture