jorgebastida / glue

Glue is a simple command line tool to generate CSS sprites
http://glue.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.55k stars 170 forks source link

SVG support #123

Open vincentbernat opened 10 years ago

vincentbernat commented 10 years ago

It would be nice to support SVG sprites as well. glue would take SVG files as input and output both PNG and SVG sprites, as well as the needed CSS to get compatibility with older versions of IE or Android Browser.

Here is some information for a nice cross-browser fallback: http://tobias.is/geeky/webperf/cross-browser-css-technique-for-svg-sprites-with-png-fallback/

Android 2.x support could be added by the way of Modernizr (with .no-svg).

MarcDiethelm commented 10 years ago

:+1: That would indeed be awesome. Although the task seems quite daunting! Here's the probably most important resource about the topic: http://coding.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/

wyuenho commented 6 years ago

This would be nice. Support could be added by switching to Wand and dumping Pillow/PIL

wyuenho commented 6 years ago

For reference, node has svg-sprite, it supports SVG optimization via SVGO. Python's equivalent to it is probably Scour