rpitx/snap2spectrum.sh
mamborambo 2a2cb7272e Fix shellcheck issues
- Added shebang to all the scripts
- Adjusted all the scripts to make them compatible with a POSIX shell
2018-12-01 00:00:00 +00:00

16 lines
587 B
Bash
Executable file

#!/bin/sh
raspistill -w 320 -h 256 -o picture.jpg -t 1
#convert picture.jpg -flip -colors 16 -colorspace gray -dither -colorspace YUV picture.yuv
#convert picture.jpg -flip -colors 16 -colorspace gray -colorspace YUV picture.yuv
#convert BBC-Test-Card-F320x256.jpg -flip -quantize YUV -dither FloydSteinberg -colors 4 -interlace partition picture.yuv
convert picture.jpg -flip -quantize YUV -dither FloydSteinberg -colors 4 \
-interlace partition picture.yuv
sudo ./spectrumpaint picture.Y "$1" 100000
#convert -depth 8 picture.jpg picture.rgb
#sudo ./pisstv picture.rgb 144.5e6