title: Convert base64 png to jpeg image in Nodejs
body: <p>I am using <strong>FabricJS</strong> module in <strong>Nodejs</strong>. There is a Canvas I am trying to export as <code>jpeg</code> but it wont(giving me a hard time). All I am getting is <strong>base64 png</strong> data.</p>
  
  <p>Data that starts like </p>
  
  <pre><code>data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t.....
  </code></pre>
  
  <p>Is there anyway in nodejs that I can convert this image to jpeg? I googled a lot but couldn get a solution</p>