From 79a9573a9c4a3c3252a6804e8e70aefd98f5c82f Mon Sep 17 00:00:00 2001 From: JOE XMG <thunyathep.s@outlook.com> Date: Mon, 26 Feb 2024 22:17:26 +0100 Subject: [PATCH] update --- public/fellbach/png2tif.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 public/fellbach/png2tif.sh diff --git a/public/fellbach/png2tif.sh b/public/fellbach/png2tif.sh new file mode 100644 index 0000000..360d0f4 --- /dev/null +++ b/public/fellbach/png2tif.sh @@ -0,0 +1,10 @@ +mkdir -p tif +# Convert PNGs to TIFs one by one +for file in *.png +do + # Get the file name without the extension + filename="${file%.*}" + # Convert the PNG file to GeoTIFF + # including the corresponding pgw file for georeferencing + gdal_translate -of GTiff -co "TILED=YES" "${filename}.png" "tif/${filename}.tif" +done -- GitLab