svg-to-png.sh@a38a0eb007b0
svg-to-png.sh
Tue, 15 Mar 2022 19:48:07 +0200
- author
- Teemu Piippo <teemu@hecknology.net>
- date
- Tue, 15 Mar 2022 19:48:07 +0200
- changeset 185
- a38a0eb007b0
- parent 162
-
3ebe1a0ca818
- permissions
- -rwxr-xr-x
Added line path tool
#!/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