From e1a97f65e626776ce9078e393dfdbeb386e3c1fc Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 30 Nov 2025 15:35:50 +0100 Subject: [PATCH] Add scripts/convert_raw_to_png.sh --- scripts/convert_raw_to_png.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/convert_raw_to_png.sh diff --git a/scripts/convert_raw_to_png.sh b/scripts/convert_raw_to_png.sh new file mode 100644 index 00000000..ae1c5350 --- /dev/null +++ b/scripts/convert_raw_to_png.sh @@ -0,0 +1,12 @@ +inputfile="$1" +if [ -z "$inputfile" ]; then + echo "Usage: $0 inputfile" + echo "Example: $0 camera_capture_1764503331_960x960_GRAY.raw" + exit 1 +fi + +outputfile="$inputfile".png +echo "Converting $inputfile to $outputfile" + +# For now it's pretty hard coded but the format could be extracted from the filename... +convert -size 960x960 -depth 8 gray:"$inputfile" "$outputfile"