This is how I've been generating lots of interesting stock images, scaled and prepared for SSTV transmission. Most modes require either 320×240 or more common, 320×256px images. I also want variations for different occasions:
- calling CQ
- greetings (morning, afternoon, evening)
- departing
- blank ones that can be used in templates
All images are to have a call-sign applied if none is present.
For this, I scale all input images to 320×240px, add a 16px header with the call-sign in morse (pre-prepared in The Gimp), and provide a number of transparent PNG "layers" that can be overlayed.
netpbm
does most of the grunt work, with GNU make
orchestrating.
This contains the top 16px header and a background to overlay the image on top of. Should be the same size as the output (320×256px), opaque true-colour PNG.
This gets put in layers/${CALLSIGN}/header-bg.png
-- one for each callsign you use.
This is a stylised "de ${CALLSIGN}" image, which will be overlayed over the image. Again, same size as the output, but this time, it should be a transparent true-colour PNG.
This gets put in layers/${CALLSIGN}/de-call.png
-- one for each callsign you use.
These are additional message layers for different variations of the image.
You can use any name you like: consisting of non-whitespace filename characters. The image itself is a true-colour transparent PNG the same size as the output (320×256px).
In my configuration I have:
cq-sstv
morning-all
afternoon-all
evening-all
73-all
73-gotta-fly
The name empty
is reserved, for "no message layer", making an "empty" output image that you
can use in QSSTV templates.
These are images in PNG or JPEG format, stored in the src/
directory. They are assumed to be
non-transparent, and should be roughly landscape. If the image is a more widescreen ratio, it will
be auto-cropped to a 4:3 aspect ratio (picking the image centre).
These are the first two lines of the Makefile
. CALLSIGNS
should be all your callsigns, both
permanent and temporary. (e.g. in Australia, on 3 days a year, we substitute the VK
prefix
with AX
.) Space-separated.
VARIANTS
describes what variants of the source images to generate. Space-separated.
Run make
, and your images should be placed in tx_stock/
.
Run make