From 719d61982953caf61c0df7776347e13105a2e8b2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 22 Oct 2022 12:53:57 +0200 Subject: Add asset rendering scripts. --- tools/build_map.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/build_map.sh (limited to 'tools/build_map.sh') 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 -- cgit v1.2.3