From 8c7825d12107b4add51290ece5c98c9b89445de8 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 13 Mar 2021 10:27:07 +0100 Subject: scripts: Add script to easily convert the latest map --- scripts/convert_maps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/convert_maps.sh') 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 -- cgit v1.2.3