You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
13 lines
371 B
Bash
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"
|