This 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 have to use another field type to load SVG image. Load SVG files into the Image field, it is not needed to create file field or special "SVG" type field.

Don't forget to add svg file extension into the list of the allowed image extensions in the field settings.

Features (beyond the main functionality):

  • Ability to select width and height of the image in formatter settings
  • Ability to render svg image as <img> or <svg> tags.
  • Responsive image support. Please activate svg_image_responsive submodule to get such functionality

If you met any problems with this module - feel free to create an issue.

Other modules:

  • SVG image field - Provides another field type used for SVG image uploading.
  • SVG Formatter - Module adds ability to display field with type "file" as SVG image.
Supporting organizations: 
Initial development and support
Further development and support

Project information

Releases