Using ImageMagick to do... a bunch of stuff. Starts with a 640x480 webcam pic.
convert input.jpg -resize 320x240 \ # shrink image -gravity north -background red -extent 320x256 \ # insert red footer -font Courier-Bold -pointsize 16 \ # font face -fill white +gravity \ # font color -annotate +5+252 "KI4MCW-11 2017-07-26 23:06z" \ # add text output.jpg \ # write output fileFor using AIM 4170C under Wine on Linux, configure the serial port.
#!/bin/shecho 'Configuring port...'stty -F /dev/ttyUSB0 speed 57600 cs8 -cstopb -parenb -crtscts \ -ixon -onlcr -echoe -echok -noflsh -echoctl -echokesleep 1echo 'Activating red LED to initialize comms (confirm)...'echo -n 'K1' > /dev/ttyUSB0sleep 3echo 'De-activating red LED...'echo -n 'K0' > /dev/ttyUSB0echo 'Launching app...'nohup wine c:/AIM/AIM_925.exe > /dev/null 2>&1 < /dev/null &sleep 3# end