We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e40fe8f commit e1a97f6Copy full SHA for e1a97f6
1 file changed
scripts/convert_raw_to_png.sh
@@ -0,0 +1,12 @@
1
+inputfile="$1"
2
+if [ -z "$inputfile" ]; then
3
+ echo "Usage: $0 inputfile"
4
+ echo "Example: $0 camera_capture_1764503331_960x960_GRAY.raw"
5
+ exit 1
6
+fi
7
+
8
+outputfile="$inputfile".png
9
+echo "Converting $inputfile to $outputfile"
10
11
+# For now it's pretty hard coded but the format could be extracted from the filename...
12
+convert -size 960x960 -depth 8 gray:"$inputfile" "$outputfile"
0 commit comments