Project

General

Profile

Statistics
| Revision:

root / proj / helpers / png_to_xpm.sh @ 236

History | View | Annotate | Download (156 Bytes)

1
cd $1
2
mkdir -p xpm
3
for f in png/*.png; do
4
    a=`expr "$f" : 'png/\([a-zA-Z0-9]*\).png'`
5
    convert $f xpm/$a.xpm
6
done
7
sed -i "s/black/#000000/g" xpm/*.xpm