Convert works out what it is converting to from the extension. So adding .tmp stopped it converting to JPG. Doh!
The Jenkins workspace is exported as the web site. So when updating files that take time, such as making MP3, create to a temp file and rename into place.
Templating done with sed, and minimal HTML.