try giving the generated pngs transparent backgrounds

This commit is contained in:
Eric House 2013-10-23 21:07:38 -07:00
parent c605368cba
commit 60ae8b97c2

View file

@ -2,6 +2,7 @@
IMG_SRC = ./img_src
IMG_DEST = res
PARAMS = -transparent white -negate
# $(IMG_DEST)/drawable/%_gen.png:
# pwd
@ -11,10 +12,10 @@ IMG_DEST = res
# convert -extent 48x48 $< $@
$(IMG_DEST)/drawable-xhdpi/%__gen.png: $(IMG_SRC)/%.svg
convert -negate -scale 64x64 $< $@
convert $(PARAMS) -scale 64x64 $< $@
$(IMG_DEST)/drawable-mdpi/%__gen.png: $(IMG_SRC)/%.svg
convert -negate -scale 32x32 $< $@
convert $(PARAMS) -scale 32x32 $< $@
$(IMG_DEST)/drawable-hdpi/%__gen.png: $(IMG_SRC)/%.svg
convert -negate -scale 48x48 $< $@
convert $(PARAMS) -scale 48x48 $< $@