Browse Source

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 <xiaolunwen@gmail.com>
tags/v1.12.0-dev
silverwind GitHub 5 years ago
parent
commit
5c490f1364
6 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Makefile
  2. BIN
      public/img/apple-touch-icon.png
  3. BIN
      public/img/auth/google.png
  4. BIN
      public/img/msteams.png
  5. BIN
      public/img/repo_default.png
  6. BIN
      public/img/telegram.png

+ 3
- 3
Makefile View File

@@ -550,10 +550,10 @@ generate-images:
convert $(TMPDIR)/images/16.png $(TMPDIR)/images/32.png \ convert $(TMPDIR)/images/16.png $(TMPDIR)/images/32.png \
$(TMPDIR)/images/64.png $(TMPDIR)/images/128.png \ $(TMPDIR)/images/64.png $(TMPDIR)/images/128.png \
$(PWD)/public/img/favicon.ico $(PWD)/public/img/favicon.ico
convert $(PWD)/public/img/favicon.png -fill white -opaque none $(PWD)/public/img/apple-touch-icon.png
convert -flatten $(PWD)/public/img/favicon.png $(PWD)/public/img/apple-touch-icon.png
rm -rf $(TMPDIR)/images rm -rf $(TMPDIR)/images
$(foreach file, $(shell find public/img -type f -name '*.png'),zopflipng -m -y $(file) $(file);)
$(foreach file, $(shell find public/img -type f -name '*.png' ! -name 'loading.png'),zopflipng -m -y $(file) $(file);)


.PHONY: pr .PHONY: pr
pr: pr:


BIN
public/img/apple-touch-icon.png View File

Before After
Width: 180  |  Height: 180  |  Size: 8.4 kB Width: 180  |  Height: 180  |  Size: 5.4 kB

BIN
public/img/auth/google.png View File

Before After
Width: 64  |  Height: 64  |  Size: 1.6 kB Width: 64  |  Height: 64  |  Size: 1.6 kB

BIN
public/img/msteams.png View File

Before After
Width: 256  |  Height: 256  |  Size: 6.2 kB Width: 256  |  Height: 256  |  Size: 4.3 kB

BIN
public/img/repo_default.png View File

Before After
Width: 400  |  Height: 400  |  Size: 2.5 kB Width: 400  |  Height: 400  |  Size: 1.6 kB

BIN
public/img/telegram.png View File

Before After
Width: 236  |  Height: 236  |  Size: 12 kB Width: 236  |  Height: 236  |  Size: 9.9 kB

Loading…
Cancel
Save