Svgeezy's API is not all that intuitive or powerful, but it's simple. The first parameter is the class name you want to avoid replacing (if any) and the second is the type of fallback. This works at the document level, so you can't replace some SVGs with JPG and others with PNG.
// will replace all SVGs with PNGs
svgeezy.init('nothing', 'png');
// will replace all SVGs with JPGs except those that have class="noreplace"
svgeezy.init('noreplace', 'jpg');
Your fallback should have the same file name as the original SVG. So, for example, if you want to replace logo.svg
, then logo.png
should be in the same directory.
To load the javascript put this just before the closing </body>
tag:
<script type="text/javascript">
svgeezy.init('whatever', 'png');
</script>