Skip to content
Snippets Groups Projects
Forked from project / svg_image
3 commits behind, 1 commit ahead of the upstream repository.

SVG Image

SVG Image module changes default image field widget and formatter to allow use SVG image with the standard Image field.

Using SVG Image module you will not need to use another field to use SVG image instead of the already created Image field. Just add the svg extension into the field settings and module will do the rest.

Table of contents

Requirements

This module requires:

  • Drupal core module "Image"
  • libxml PHP extension (part of the SVG Sanitizer)

Installation

Install as you would normally install a contributed Drupal module. Visit: https://www.drupal.org/docs/extending-drupal/installing-drupal-modules for further information.

If responsive image support is needed please also enable SVG Image Responsive (svg_image_responsive) module.

Configuration

All configuration is available via Image field settings. You can set up:

  • Display image as SVG (Using <svg> HTML tag). <img> tag will be used otherwise
  • Display SVG image with predefined width and height (It will not be applied to the other image types)

Maintainers

Drupal8 version of the module was developed with DrupalJedi support.

Further development and support provided by Attico International