-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query: template file format documentation #45
Comments
Based on a cursory glance at what I think is the relevant code, I get the impression is that it is .png, just like "Save as Image" just with a different file extension. |
Yep, it could be a PNG extension that describes the template… but it's not just a PNG. PNGs from what I understand don't natively implement templating. Likely there's some custom "chunk" format used to describe the different elements of the template that's embedded in the PNG. Macromedia Fireworks used to do something similar to implement layers, but this was an extension of, rather than a built-in feature of, the PNG format. |
Actual saving happens in
So the actual code to write things out is in |
Hi,
A silly question, is there some documentation on how the template files are constructed?
I have a number of stock images and I'd like to mass-create different templates based on those stock images.
I already have a
netpbm
-based pipeline orchestrated withmake
that can take those stock images, pad or crop images to 4:3 aspect ratio, scale to 320×240px, add a 16px header and apply a call-sign watermark.There are two call-signs I use: my normal one
VK4MSL
, but 3 days a year, ACMA's class license permits us to substituteVK
withAX
, and so I've got watermarks and headers withAX4MSL
.The challenge is creating the templates is a manual process. At best I can open up a template based on one of the VK-watermarked stock images, delete the background image, insert an AX-watermarked image, send it to the back, expand it, then save the resulting template as a new file. This is tedious.
Pixel-positions of text fields in the template do not change between the
VK
andAX
variants. Assuming the positioning and font selection information of each text field and replay field is known, how would one go about constructing a template file?The text was updated successfully, but these errors were encountered: