# HG changeset patch # User Nicholas Jillings # Date 1492784222 -3600 # Node ID 9c031a976321e9b8ad829523f475eef8b0c653b4 # Parent 46105b2573fc45e10e2cdb816231bbbb40b0f122 #138. Added to encoder diff -r 46105b2573fc -r 9c031a976321 js/specification.js --- a/js/specification.js Fri Apr 21 15:07:24 2017 +0100 +++ b/js/specification.js Fri Apr 21 15:17:02 2017 +0100 @@ -478,6 +478,11 @@ child.setAttribute("name", option.name); node.appendChild(child); }); + if (typeof this.image == "string" && this.image.length !== 0) { + var imgNode = doc.createElement("image"); + imgNode.setAttribute("src", this.image); + node.appendChild(imgNode); + } if (this.scales.length !== 0) { var scales = doc.createElement("scales"); this.scales.forEach(function (scale) {