]> git.ipfire.org Git - artwork.git/commitdiff
favicon: Give it a white background
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2026 16:57:52 +0000 (16:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2026 16:57:52 +0000 (16:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile

index efde0639c2f6b4cd73b3f2bc349c08f7dfcc2874..e785f56a3b88879692526cbda431a8ac0d839ef5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -131,28 +131,28 @@ standard/favicon.svg: favicon.svg
 # Converts the favicon to PNG
 %/favicon-16x16.png: %/favicon.svg
        mkdir -p $(dir $@) && \
-       $(RSVG_CONVERT) --format=png --width=16 $< > $@
+       $(RSVG_CONVERT) --format=png --width=16 --background-color="#$(WHITE)" $< > $@
 
 %/favicon-32x32.png: %/favicon.svg
        mkdir -p $(dir $@) && \
-       $(RSVG_CONVERT) --format=png --width=32 $< > $@
+       $(RSVG_CONVERT) --format=png --width=32 --background-color="#$(WHITE)" $< > $@
 
 %/favicon-64x64.png: %/favicon.svg
        mkdir -p $(dir $@) && \
-       $(RSVG_CONVERT) --format=png --width=64 $< > $@
+       $(RSVG_CONVERT) --format=png --width=64 --background-color="#$(WHITE)" $< > $@
 
 %/favicon-128x128.png: %/favicon.svg
        mkdir -p $(dir $@) && \
-       $(RSVG_CONVERT) --format=png --width=128 $< > $@
+       $(RSVG_CONVERT) --format=png --width=128 --background-color="#$(WHITE)" $< > $@
 
 %/favicon-256x256.png: %/favicon.svg
        mkdir -p $(dir $@) && \
-       $(RSVG_CONVERT) --format=png --width=256 $< > $@
+       $(RSVG_CONVERT) --format=png --width=256 --background-color="#$(WHITE)" $< > $@
 
 # This is like the favicon but in 180x180px
 %/apple-touch-icon.png: %/favicon.svg
        mkdir -p $(dir $@) && \
-       $(RSVG_CONVERT) --format=png --width=180 $< > $@
+       $(RSVG_CONVERT) --format=png --width=180 --background-color="#$(WHITE)" $< > $@
 
 # Convert the logo to monochome only
 %-monochrome.svg: %.svg