Files
MicroPythonOS/scripts/convert_raw_to_png.sh
T
2025-11-30 15:35:50 +01:00

13 lines
371 B
Bash

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"