Could replace all the 'Insert {{title}}.jpg here' with short and simple 'X × Y', by replacing 3 lines of ctx.fillText
with
ctx.fillText(width + '×' + height, width / 2, height / 2 - fontSize * 0.1);
Clone this gist.
ln -s %pathToClonedGist%/placeholdit/placeholdit /usr/bin/placeholdit
placeholdit Something 1000 800 | cat > something.jpg