[SCM] Packaging for Liero branch, master, updated. cc2b7621caf1cea6561cd7c487ed2ea234d0a19f

Martin Erik Werner martinerikwerner at gmail.com
Sat Dec 17 19:38:36 UTC 2011


The following commit has been merged in the master branch:
commit 82c371e554c91adaf59bbf6a13e9364decaa3f6b
Author: Martin Erik Werner <martinerikwerner at gmail.com>
Date:   Sat Dec 17 19:21:18 2011 +0100

    script to wget and auto-generate

diff --git a/debian/scripts/get-icons b/debian/scripts/get-icons
new file mode 100755
index 0000000..3c8edb0
--- /dev/null
+++ b/debian/scripts/get-icons
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Script to grab image from open.liero.be and create icons of appropriate sizes
+# Code comments:
+# 1	Makes background brown colour transparent
+# 2.1	Covers text with monocoloured box
+# 2.2	Double trim to remove box, then auto-crop
+# 3	Make canvas rectangular
+# 4.1	Clone state at this point and resize to appropriate icon sizes
+# 4.2	Point filter is pixel-art-friendly
+
+
+wget http://open.liero.be/dlnow.png -O liero_tmp.png && \
+	convert liero_tmp.png -transparent "#321803" \
+	-draw 'rectangle 0,75 96,110' -trim -trim \
+	-background transparent -gravity center -extent 72x72 \
+	\( +clone -filter Point -resize x32 -write liero_x32.png +delete \) \
+	\( +clone -filter Point -resize x48 -write liero_x48.png +delete \) \
+	\( +clone -filter Point -resize x64 -write liero_x64.png +delete \) \
+	-filter Point -resize x128 liero_x128.png

-- 
Packaging for Liero



More information about the Pkg-games-commits mailing list