svg-to-png.sh

Sun, 06 Mar 2022 10:32:54 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 06 Mar 2022 10:32:54 +0200
changeset 171
b497f5e66749
parent 162
3ebe1a0ca818
permissions
-rwxr-xr-x

add missing file

#!/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

mercurial