cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 1803de660ea0da91e61df2419e7823e67f2de804
parent 79872601287ae0e0b7bd1fadb0b74aa166d14caa
Author: mrbesen <y.g.2@gmx.de>
Date:   Fri, 23 Feb 2024 13:43:49 +0100

use gimp to compress the icon

Diffstat:
M.github/workflows/build.yml | 5-----
M.gitignore | 2--
MMakefile | 10+++++++++-
Acnping.ico | 0
4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml @@ -41,11 +41,6 @@ jobs: name: cnping-exe path: "*.exe" - - uses: actions/upload-artifact@v4 - with: - name: cnping-icon - path: "cnping.ico" - - name: Build deb run: debuild --no-sign diff --git a/.gitignore b/.gitignore @@ -10,5 +10,3 @@ debian/cnping debian/cnping.substvars debian/debhelper-build-stamp debian/files - -cnping.ico diff --git a/Makefile b/Makefile @@ -77,6 +77,14 @@ updateicons : ${ICONSPATH}scalable/apps/${APPNAME}.svg convert $^ -resize 256x256 ${ICONSPATH}256x256/apps/${APPNAME}.png convert $^ -resize 1024x1024 ${ICONSPATH}1024x1024/apps/${APPNAME}.png +# after creating the ico file use GIMP to compress it: +# Image-> Mode -> Indexed... +# Choose "Generate optimum palette" +# Maximum number of colors: 3 (may change if the icon changes) +# "Convert" +# File -> Export As +# Check "Compressed (PNG)" in every resolution +# "Export" cnping.ico: ${ICONSPATH}scalable/apps/${APPNAME}.svg - convert $^ -density 300 -define icon:auto-resize=128,32 -background none $@ + convert $^ -density 300 -define icon:auto-resize=256,64,16 -background none $@ diff --git a/cnping.ico b/cnping.ico Binary files differ.