Skip to content

Commit d7f4f87

Browse files
silverwindlunny
andauthored
fix apple-touch-icon, regenerate images (#10065)
* fix apple-touch-icon, regenerate images Fixed semi-transparent pixels of apple-touch-icon.png. I had to manually exclude public/img/loading.png from the commit because it's an APNG and one of the tools destroys the animation. * exclude loading.png Co-authored-by: Lunny Xiao <[email protected]>
1 parent 04cbdf5 commit d7f4f87

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@ generate-images:
550550
convert $(TMPDIR)/images/16.png $(TMPDIR)/images/32.png \
551551
$(TMPDIR)/images/64.png $(TMPDIR)/images/128.png \
552552
$(PWD)/public/img/favicon.ico
553-
convert $(PWD)/public/img/favicon.png -fill white -opaque none $(PWD)/public/img/apple-touch-icon.png
554-
553+
convert -flatten $(PWD)/public/img/favicon.png $(PWD)/public/img/apple-touch-icon.png
554+
555555
rm -rf $(TMPDIR)/images
556-
$(foreach file, $(shell find public/img -type f -name '*.png'),zopflipng -m -y $(file) $(file);)
556+
$(foreach file, $(shell find public/img -type f -name '*.png' ! -name 'loading.png'),zopflipng -m -y $(file) $(file);)
557557

558558
.PHONY: pr
559559
pr:

public/img/apple-touch-icon.png

-2.96 KB
Loading

public/img/auth/google.png

-3 Bytes
Loading

public/img/msteams.png

-1.8 KB
Loading

public/img/repo_default.png

-819 Bytes
Loading

public/img/telegram.png

-2.48 KB
Loading

0 commit comments

Comments
 (0)