diff --git a/public/fellbach/png2tif.sh b/public/fellbach/png2tif.sh new file mode 100644 index 0000000000000000000000000000000000000000..360d0f46c42f6629c6693fbe2b89b3a229f30d51 --- /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