Add scripts/convert_raw_to_png.sh

This commit is contained in:
Thomas Farstrike
2025-11-30 15:35:50 +01:00
parent e40fe8fdb2
commit e1a97f65e6
+12
View File
@@ -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"