title: How to add custom content in fabric.Image()
body: <p>I am trying to use the following suggested way to store canvas in the server:</p>
  <p><a href="https://stackoverflow.com/questions/11272772/fabric-js-how-to-save-canvas-on-server-with-custom-attributes">Fabric.js - how to save canvas on server with custom attributes</a></p>
  <p>But in my case, I am loading an image from a url like:</p>
  <pre class="lang-js prettyprint-override"><code>fabric.Image.fromURL(url, function(image) {
    image.alt = product.skuId;
    image.productClass = product.productClass;
    canvas.add(image);
  }, {
    crossOrigin: &quot;Annoymous&quot;
  });
  </code></pre>
  <p>But when I try to store the same in the db the newer attributes are not stored.</p>
  <p>Is there a way to store custom attribute (or even &quot;alt&quot;) in the DB?</p>
  <p>Edit:</p>
  <p>Created a fiddle with what I tried:
  <a href="https://jsfiddle.net/anjhawar/dpyb7cf7/" rel="nofollow noreferrer">https://jsfiddle.net/anjhawar/dpyb7cf7/</a></p>
  <p>When we press save the canvas is dumped in the local storage, but when we check the &quot;objects&quot; array we do not get the custom attributes i.e. &quot;id&quot; and &quot;alt&quot;, as per the example.</p>
  <p>Am I missing something?</p>