svg-to-png.sh@530d23cd4e97
svg-to-png.sh
Thu, 15 Jun 2023 16:18:03 +0300
- author
- Teemu Piippo <teemu.s.piippo@gmail.com>
- date
- Thu, 15 Jun 2023 16:18:03 +0300
- changeset 383
- 530d23cd4e97
- parent 162
-
3ebe1a0ca818
- permissions
- -rwxr-xr-x
Refactor, make selecting elements from the model select the corresponding line from the editor as well
#!/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