Mercurial > hg > nodescore
view svgmods.sh @ 26:ac9641ecf84f
updated rasterize and ss2thumb to cycle offsets of grab for different anchors
removed some bad path stuctures
author | tzara <rc-web@kiben.net> |
---|---|
date | Mon, 16 Jul 2012 16:51:55 +0100 |
parents | 8ac67b784a8c |
children | e4d2a8eb1450 |
line wrap: on
line source
#!/bin/bash ## add reference to external stylesheet to each svg file path="www/m/svg" header='<?xml-stylesheet type="text/css" href="svg-stylesheet.css" ?> ' for i in `ls $path/*.svg`; do # change size - commented out - size can be defined in html sed -i 's/ width="105.00mm" height="60.00mm" viewBox="0 0 108.6378 62.0787"/ width="1280px" height="800px" viewBox="0 0 1280 800"/'g $i #sed -i 's/ width="105.00mm" height="60.00mm" / width="1280px" height="800px" /'g $i echo $header > tmp.svg; cat $i >> tmp.svg ; mv tmp.svg $i; done;