Mercurial > trustbridge
diff ui/img/src/Makefile @ 1171:76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 19 Sep 2014 15:23:50 +0200 |
parents | |
children | b64f847bde09 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/img/src/Makefile Fri Sep 19 15:23:50 2014 +0200 @@ -0,0 +1,16 @@ +# Makefile inspired from oxygen-icons-4.13.0/scalable/export_pngs.sh +# needs ImageMagick and Inkscape + +svgs := $(wildcard *.svg) + +targets := $(patsubst %.svg,%-48.png,$(svgs)) + +all: $(targets) + +clean: + rm $(targets) $(patsubst %.svg,%.png,$(svgs)) + +%-48.png:%.svg + inkscape --without-gui "--export-png=$*.png" --export-dpi=72 --export-background-opacity=0 --export-width=512 --export-height=512 "$<" >/dev/null + convert -filter Sinc -resize 48x48 "$*.png" "$@" +