diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-10-22 12:53:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-19 00:05:34 +0100 |
commit | 719d61982953caf61c0df7776347e13105a2e8b2 (patch) | |
tree | 4e11a9d0c502264f4169de97914fca6ccaf9ef22 /tools/build_map.sh | |
parent | 8d8d6db547653dff6ffb34fdf9336317da50121e (diff) | |
download | nevsky-719d61982953caf61c0df7776347e13105a2e8b2.tar.gz |
Add asset rendering scripts.
Diffstat (limited to 'tools/build_map.sh')
-rw-r--r-- | tools/build_map.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/build_map.sh b/tools/build_map.sh new file mode 100644 index 0000000..1af18c4 --- /dev/null +++ b/tools/build_map.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -x + +mutool extract -r "../HIRES/Nevsky - Game Board_CORRECTED 080919.pdf" +mv image-0017.png map300_uncropped.png + +# ArtBox 63.5197 63.5197 1287.52 1647.52 +# 5100x6600 +convert map300_uncropped.png -gravity Center -crop 5100x6600+0+0 +repage map300.png +rm map300_uncropped.png + +# convert map300.png -colorspace RGB -resize 33.3333333% -colorspace sRGB map100.png +# convert map300.png -colorspace RGB -resize 66.6666667% -colorspace sRGB map200.png +convert map300.png -colorspace RGB -resize 25% -colorspace sRGB map75.png +convert map300.png -colorspace RGB -resize 50% -colorspace sRGB map150.png |