diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-20 14:58:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:15 +0200 |
commit | 6957f7be1b0d24f0c46f0eeb3fa224493a74e7b5 (patch) | |
tree | a9fd2a54f70f29a34cc48c44d5e20cd57b6c97d0 /tools/resize_cards.sh | |
parent | 013d3b84d36eaf593c0070325e4b1bba232a1dd0 (diff) | |
download | andean-abyss-6957f7be1b0d24f0c46f0eeb3fa224493a74e7b5.tar.gz |
Various tools and piece generation scripts.
Diffstat (limited to 'tools/resize_cards.sh')
-rw-r--r-- | tools/resize_cards.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/resize_cards.sh b/tools/resize_cards.sh new file mode 100644 index 0000000..b868e4f --- /dev/null +++ b/tools/resize_cards.sh @@ -0,0 +1,9 @@ +mkdir -p cards.1x cards.2x +for F in HIRES/cards/*.png +do + echo $F + # 186x261 at 75dpi (unused) + # 248x348 at 100dpi + convert -colorspace RGB -gravity Center -crop 2976x4176+0+0 -resize 8.333333% -colorspace sRGB $F cards.1x/$(basename $F) + convert -colorspace RGB -gravity Center -crop 2976x4176+0+0 -resize 16.666666% -colorspace sRGB $F cards.2x/$(basename $F) +done |