summaryrefslogtreecommitdiff
path: root/scripts/convert_maps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/convert_maps.sh')
-rwxr-xr-xscripts/convert_maps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/convert_maps.sh b/scripts/convert_maps.sh
index faeea22..16bfe9f 100755
--- a/scripts/convert_maps.sh
+++ b/scripts/convert_maps.sh
@@ -11,8 +11,8 @@
# `convert $MAPFILE -extent ${crop}x${crop} -gravity NorthWest $MAPFILE.scaled.png`
TILESIZE=256
-MAPNAME="world-2020-04-09"
-MAPFILE="../$MAPNAME.png"
+MAPNAME="$1"
+MAPFILE="$2"
width=`file "$MAPFILE" | sed -n "s/.* \([0-9]\+\) x \([0-9]\+\).*/\1/p"`
crop=$TILESIZE