SVG Formatter is a Drupal 8 and 9 module that provides support for using SVG images on your website. It does so by providing a field formatter for the file field type.
I created this module almost three years ago, and it is now used by around 3500 websites.
The module is Drupal 9 ready, and today I released a new version (1.10) which comes with the Token support for generating alt and title attributes, and we finally have test coverage.
To find out how to use the module, check out my blog post Drupal 8 and SVG images or watch the following screencast.
About the Author
Goran Nikolovski is a creator, speaker, open-source contributor, web developer specializing in Drupal and DevOps enthusiast. He is the founder of this website and he enjoys sharing his knowledge. Need help with anything related to Drupal? Get in touch.