svg-to-png.sh@76a025db4948
svg-to-png.sh
Sun, 26 Jun 2022 21:32:51 +0300
- author
- Teemu Piippo <teemu.s.piippo@gmail.com>
- date
- Sun, 26 Jun 2022 21:32:51 +0300
- changeset 264
- 76a025db4948
- parent 162
-
3ebe1a0ca818
- permissions
- -rwxr-xr-x
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
#!/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