svg-to-png.sh@3ebe1a0ca818
svg-to-png.sh
Sat, 05 Mar 2022 13:19:59 +0200
- author
- Teemu Piippo <teemu@hecknology.net>
- date
- Sat, 05 Mar 2022 13:19:59 +0200
- changeset 162
- 3ebe1a0ca818
- parent 158
-
5bd755eaa5a8
- permissions
- -rwxr-xr-x
only render svg to png if the png does not exist
#!/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