summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2017-07-30 22:04:01 +0200
committerLauris BH <lauris@nix.lv>2017-07-30 23:04:01 +0300
commitd74d8ecc2ef572357e0410b677f2d24fd3b78cdd (patch)
tree41628229d2d63da6114d7af3158d51dbadcf48ac
parent27c2dcf60e60617e28d34176393394aef3fa240c (diff)
downloadgitea-d74d8ecc2ef572357e0410b677f2d24fd3b78cdd.tar.gz
gitea-d74d8ecc2ef572357e0410b677f2d24fd3b78cdd.zip
Generate small and large logos at 4x resolution (#2233)
To support High-DPI displays, generate images at 4 times their displayed resolution, which should be enough to support all current devices according to https://material.io/devices/.
-rw-r--r--Makefile8
-rw-r--r--public/img/gitea-lg.pngbin19418 -> 46270 bytes
-rw-r--r--public/img/gitea-sm.pngbin1151 -> 4881 bytes
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 23ac690809..e4fe4595fa 100644
--- a/Makefile
+++ b/Makefile
@@ -300,10 +300,10 @@ update-translations:
.PHONY: generate-images
generate-images:
mkdir -p $(TMPDIR)/images
- inkscape -f $(PWD)/assets/logo.svg -w 400 -h 400 -e $(PWD)/public/img/gitea-lg.png
- inkscape -f $(PWD)/assets/logo.svg -w 30 -h 30 -jC -i layer1 -e $(TMPDIR)/images/30-1.png
- inkscape -f $(PWD)/assets/logo.svg -w 30 -h 30 -jC -i layer2 -e $(TMPDIR)/images/30-2.png
- composite -compose atop $(TMPDIR)/images/30-2.png $(TMPDIR)/images/30-1.png $(PWD)/public/img/gitea-sm.png
+ inkscape -f $(PWD)/assets/logo.svg -w 880 -h 880 -e $(PWD)/public/img/gitea-lg.png
+ inkscape -f $(PWD)/assets/logo.svg -w 120 -h 120 -jC -i layer1 -e $(TMPDIR)/images/sm-1.png
+ inkscape -f $(PWD)/assets/logo.svg -w 120 -h 120 -jC -i layer2 -e $(TMPDIR)/images/sm-2.png
+ composite -compose atop $(TMPDIR)/images/sm-2.png $(TMPDIR)/images/sm-1.png $(PWD)/public/img/gitea-sm.png
inkscape -f $(PWD)/assets/logo.svg -w 200 -h 200 -e $(PWD)/public/img/avatar_default.png
inkscape -f $(PWD)/assets/logo.svg -w 180 -h 180 -e $(PWD)/public/img/favicon.png
inkscape -f $(PWD)/assets/logo.svg -w 128 -h 128 -e $(TMPDIR)/images/128-raw.png
diff --git a/public/img/gitea-lg.png b/public/img/gitea-lg.png
index a1668228f6..1538cd1852 100644
--- a/public/img/gitea-lg.png
+++ b/public/img/gitea-lg.png
Binary files differ
diff --git a/public/img/gitea-sm.png b/public/img/gitea-sm.png
index e1de122e75..05922cdbc8 100644
--- a/public/img/gitea-sm.png
+++ b/public/img/gitea-sm.png
Binary files differ