svg-to-png.sh

Sat, 05 Mar 2022 12:47:10 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 05 Mar 2022 12:47:10 +0200
changeset 159
1a04364d20b5
parent 158
5bd755eaa5a8
child 162
3ebe1a0ca818
permissions
-rwxr-xr-x

fix crash when loading a file
`object` is moved so we cannot access it after moving

#!/bin/bash
mkdir --parents icons
for svgfile in $(find icons_svg -name '*.svg')
do
	pngfile="icons/$(basename ${svgfile%.svg}.png)"
	echo "$svgfile => $pngfile"
	convert -background none "${svgfile}" "${pngfile}"
done

mercurial