You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Add scripts/convert_raw_to_png.sh
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user