Project

rasterday

0.0
No commit activity in last 3 years
No release in over 3 years
Rack middleware to convert SVGs to raster images
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme
Rasterday is a piece of Rack middleware to let you use SVGs transparently, even
in the face of browsers that hate SVGs.  It does this by conditionally
translating your application's SVG images to GIFs or PNGs when it thinks the
browser won't handle the SVG properly, or on a trigger you specify.

The short version is to put this in your config.ru so that it can intercept SVG
images that come back from anything deeper in the stack (e.g., your application,
or Rack::Static, or similar).

See doc/examples for example usage.  If you figure out how to use it with Rails,
I'd be interested in an example.

See doc/TODO for what the author intends to do.  See doc/LICENSE for licensing
information.