summaryrefslogtreecommitdiff
path: root/tools/cards.sh
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-23 01:44:54 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 18:39:22 +0200
commitbb449ea7ce9224284c2b60698cf0b0c7d70f9c71 (patch)
tree63569033b59d2180660bcebca71a98e4dede9ccf /tools/cards.sh
parent4936b1e7ff063e4d5d888d467f553d87a4a49abf (diff)
downloadtime-of-crisis-bb449ea7ce9224284c2b60698cf0b0c7d70f9c71.tar.gz
Asset scripts and start of client.
Diffstat (limited to 'tools/cards.sh')
-rw-r--r--tools/cards.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/cards.sh b/tools/cards.sh
new file mode 100644
index 0000000..5601ad3
--- /dev/null
+++ b/tools/cards.sh
@@ -0,0 +1,8 @@
+mkdir -p cards.1x cards.2x
+for F in HIRES/render/event*.png HIRES/render/influence*
+do
+ B=$(basename $F)
+ echo SCALING $B
+ convert -colorspace RGB -gravity Center -crop 3000x4200+0+0 -resize 8.333333% -colorspace sRGB $F cards.1x/$B
+ convert -colorspace RGB -gravity Center -crop 3000x4200+0+0 -resize 16.666667% -colorspace sRGB $F cards.2x/$B
+done