summaryrefslogtreecommitdiff
path: root/tools/build_map.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_map.sh')
-rw-r--r--tools/build_map.sh16
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