SVG Image Formatter

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Neil Gardner's picture

I developed a new sandbox module at https://www.drupal.org/sandbox/neilgardner/2505991 and demoed at http://demo.multifaceted.info to enable normal image fields to accept SVG files just like any other images and to display PNG alternatives for legacy browsers. It works with both the default Drupal image upload widget and Media 2's media browser widget.

I believe this will be a very handy module for Drupal 7 sites. Currently all modern browsers let you reference SVGs in img tags, (since Firefox 2 and IE9 so over 4 years), but Web developers keep using GIFs, PNGs and JPEGs for the kind of drawings, cartoons, diagrams, logos etc. to which SVGs are best suited, especially with responsive design where adaptive images may otherwise be required.

I'd very much appreciate others testings and reviewing this module. Try it out with SVG files saved from Inkscape, Illustrator, Google Drawings, OmniGraffle, Visio etc..

You will need ImageMagick installed for PNG alternatives and a working instance of IE8 to test it.

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week