From 32dcab3e2fab23c9992127660e7048e357ddb33f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 15 Dec 2020 23:45:24 +0900 Subject: [PATCH] Fix black backgrounds in exported svgs It seems Inkscape no longer works with both background color and opacity 0: the color overrides. I don't know if it's a bug, but making opacity 0 seems to do the right thing. --- Assets/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Makefile b/Assets/Makefile index 608b06e0..b49581ea 100644 --- a/Assets/Makefile +++ b/Assets/Makefile @@ -60,16 +60,16 @@ nightheron.png: nightheron.svg inkscape --export-width=256 --export-height=160 --export-type=png -o $@ $^ kairyuu_scaled.png: kairyuu.svg - inkscape --export-width=64 --export-height=40 --export-background='#000000' --export-background-opacity=0 --export-type=png -o $@ $^ + inkscape --export-width=64 --export-height=40 --export-type=png -o $@ $^ icon_button.png: icon_button.svg - inkscape --export-width=24 --export-height=24 --export-background='#000000' --export-background-opacity=0 --export-type=png -o $@ $^ + inkscape --export-width=24 --export-height=24 --export-background-opacity=0 --export-type=png -o $@ $^ icon_filter_n.png: icon_button.svg - sed -e 's/\#....../#000000/g' $^ | inkscape --export-width=32 --export-height=32 --export-background='#000000' --export-background-opacity=0 --export-type=png -o $@ /dev/stdin + sed -e 's/\#....../#000000/g' $^ | inkscape --export-width=32 --export-height=32 --export-background-opacity=0 --export-type=png -o $@ /dev/stdin icon_filter_s.png: icon_button.svg - sed -e 's/\#....../#ffffff/g' $^ | inkscape --export-width=32 --export-height=32 --export-background='#000000' --export-background-opacity=0 --export-type=png -o $@ /dev/stdin + sed -e 's/\#....../#ffffff/g' $^ | inkscape --export-width=32 --export-height=32 --export-background-opacity=0 --export-type=png -o $@ /dev/stdin clean: rm -f kairyuu.png kairyuu_scaled.png icon_button.png icon_filter*.png ${GUI_ICONS}