Browse Source

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/.
master
silverwind Lauris BH 7 years ago
parent
commit
d74d8ecc2e
3 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Makefile
  2. BIN
      public/img/gitea-lg.png
  3. BIN
      public/img/gitea-sm.png

+ 4
- 4
Makefile View File

@@ -300,10 +300,10 @@ update-translations:
.PHONY: generate-images .PHONY: generate-images
generate-images: generate-images:
mkdir -p $(TMPDIR)/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 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 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 inkscape -f $(PWD)/assets/logo.svg -w 128 -h 128 -e $(TMPDIR)/images/128-raw.png


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

Before After
Width: 400  |  Height: 400  |  Size: 19 kB Width: 880  |  Height: 880  |  Size: 46 kB

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

Before After
Width: 30  |  Height: 30  |  Size: 1.2 kB Width: 120  |  Height: 120  |  Size: 4.9 kB

Loading…
Cancel
Save