svg-to-png.sh@654661eab7f3
svg-to-png.sh
Wed, 08 Jun 2022 22:29:44 +0300
- author
- Teemu Piippo <teemu@hecknology.net>
- date
- Wed, 08 Jun 2022 22:29:44 +0300
- changeset 206
- 654661eab7f3
- parent 162
-
3ebe1a0ca818
- permissions
- -rwxr-xr-x
More refactor, merged main.h, basics.h and utility.h into one header file basics.h and removed plenty of unused code
#!/bin/bash
mkdir --parents icons
for svgfile in $(find icons_svg -name '*.svg')
do
pngfile="icons/$(basename ${svgfile%.svg}.png)"
if [[ ! -f "${pngfile}" ]]
then
echo "$svgfile => $pngfile"
convert -background none "${svgfile}" "${pngfile}"
fi
done