Browse Source

optimize all images in public/img (#6427)

Fixes: https://github.com/go-gitea/gitea/pull/6357
tags/v1.9.0-rc1
silverwind techknowlogick 6 years ago
parent
commit
eaa334b9d4
15 changed files with 6 additions and 5 deletions
  1. +6
    -5
      Makefile
  2. BIN
      public/img/auth/dropbox.png
  3. BIN
      public/img/auth/facebook.png
  4. BIN
      public/img/auth/google_plus.png
  5. BIN
      public/img/auth/openid_connect.png
  6. BIN
      public/img/auth/twitter.png
  7. BIN
      public/img/avatar_default.png
  8. BIN
      public/img/favicon.ico
  9. BIN
      public/img/favicon.png
  10. BIN
      public/img/gitea-192.png
  11. BIN
      public/img/gitea-512.png
  12. BIN
      public/img/gitea-lg.png
  13. BIN
      public/img/gitea-sm.png
  14. BIN
      public/img/openid-16x16.png
  15. BIN
      public/img/slack.png

+ 6
- 5
Makefile View File

@@ -427,16 +427,17 @@ generate-images:
inkscape -f $(PWD)/assets/logo.svg -w 32 -h 32 -jC -i layer2 -e $(TMPDIR)/images/32-2.png
composite -compose atop $(TMPDIR)/images/32-2.png $(TMPDIR)/images/32-1.png $(TMPDIR)/images/32-raw.png
inkscape -f $(PWD)/assets/logo.svg -w 16 -h 16 -jC -i layer1 -e $(TMPDIR)/images/16-raw.png
zopflipng $(TMPDIR)/images/128-raw.png $(TMPDIR)/images/128.png
zopflipng $(TMPDIR)/images/64-raw.png $(TMPDIR)/images/64.png
zopflipng $(TMPDIR)/images/32-raw.png $(TMPDIR)/images/32.png
zopflipng $(TMPDIR)/images/16-raw.png $(TMPDIR)/images/16.png
zopflipng -m -y $(TMPDIR)/images/128-raw.png $(TMPDIR)/images/128.png
zopflipng -m -y $(TMPDIR)/images/64-raw.png $(TMPDIR)/images/64.png
zopflipng -m -y $(TMPDIR)/images/32-raw.png $(TMPDIR)/images/32.png
zopflipng -m -y $(TMPDIR)/images/16-raw.png $(TMPDIR)/images/16.png
rm -f $(TMPDIR)/images/*-*.png
convert $(TMPDIR)/images/16.png $(TMPDIR)/images/32.png \
$(TMPDIR)/images/64.png $(TMPDIR)/images/128.png \
$(PWD)/public/img/favicon.ico
rm -rf $(TMPDIR)/images
$(foreach file, $(shell find public/img -type f -name '*.png'),zopflipng -m -y $(file) $(file);)

.PHONY: pr
pr:
$(GO) run contrib/pr/checkout.go $(PR)

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

Before After
Width: 72  |  Height: 68  |  Size: 1.4 kB Width: 72  |  Height: 68  |  Size: 1.4 kB

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

Before After
Width: 128  |  Height: 128  |  Size: 2.3 kB Width: 128  |  Height: 128  |  Size: 2.1 kB

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

Before After
Width: 64  |  Height: 64  |  Size: 4.4 kB Width: 64  |  Height: 64  |  Size: 1.3 kB

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

Before After
Width: 443  |  Height: 210  |  Size: 13 kB Width: 443  |  Height: 210  |  Size: 4.1 kB

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

Before After
Width: 64  |  Height: 64  |  Size: 3.1 kB Width: 64  |  Height: 64  |  Size: 2.7 kB

BIN
public/img/avatar_default.png View File

Before After
Width: 200  |  Height: 200  |  Size: 9.1 kB Width: 200  |  Height: 200  |  Size: 6.2 kB

BIN
public/img/favicon.ico View File

Before After

BIN
public/img/favicon.png View File

Before After
Width: 180  |  Height: 180  |  Size: 8.3 kB Width: 180  |  Height: 180  |  Size: 5.6 kB

BIN
public/img/gitea-192.png View File

Before After
Width: 192  |  Height: 192  |  Size: 8.7 kB Width: 192  |  Height: 192  |  Size: 5.9 kB

BIN
public/img/gitea-512.png View File

Before After
Width: 512  |  Height: 512  |  Size: 26 kB Width: 512  |  Height: 512  |  Size: 18 kB

BIN
public/img/gitea-lg.png View File

Before After
Width: 880  |  Height: 880  |  Size: 46 kB Width: 880  |  Height: 880  |  Size: 34 kB

BIN
public/img/gitea-sm.png View File

Before After
Width: 120  |  Height: 120  |  Size: 4.9 kB Width: 120  |  Height: 120  |  Size: 3.4 kB

BIN
public/img/openid-16x16.png View File

Before After
Width: 16  |  Height: 16  |  Size: 230 B Width: 16  |  Height: 16  |  Size: 172 B

BIN
public/img/slack.png View File

Before After
Width: 32  |  Height: 32  |  Size: 1.5 kB Width: 32  |  Height: 32  |  Size: 1.4 kB

Loading…
Cancel
Save