diff options
author | silverwind <me@silverwind.io> | 2019-03-25 22:23:17 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-03-25 17:23:17 -0400 |
commit | d86f878b3e78acdbce0b96121cf10ba080815bda (patch) | |
tree | 2d979b86b7a4e0981e1b666fcfb17d605c7145cc /Makefile | |
parent | fb2ea06bb18fc3bb68bab5022f8a201c32344cb8 (diff) | |
download | gitea-d86f878b3e78acdbce0b96121cf10ba080815bda.tar.gz gitea-d86f878b3e78acdbce0b96121cf10ba080815bda.zip |
optimize all images in public/img (#6427)
Fixes: https://github.com/go-gitea/gitea/pull/6357
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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) |