svg-to-png.sh

Tue, 15 Mar 2022 18:52:48 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 15 Mar 2022 18:52:48 +0200
changeset 183
97b591813c8b
parent 162
3ebe1a0ca818
permissions
-rwxr-xr-x

- Add editors for string and bool properties
- Add invert action

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