beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: WIP trying to reduce memory usage : use .onclick onstead of SetAttribute, avoid useless closure and object creation when possible, etc.
svghmi
2020-11-27, Edouard Tisserant
e5fa1f49f0b9
SVGHMI: WIP trying to reduce memory usage : use .onclick onstead of SetAttribute, avoid useless closure and object creation when possible, etc.
#!/bin/bash
INKSCAPE=inkscape
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'`
do
if [ $i.png -nt icons.svg ]; then
echo "Skip $i"
else
rm -f $i.png
echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
"$INKSCAPE" icons.svg -z -e $i.png -i $i
fi
done