PDFmake "unknown image format" error
<p>I'm trying to put a BMP image (encoded as a base64 string) into a PDF, however it is failing with the error <code>Uncaught Error: Unknown image format</code>. I know the image is formatted correctly because it loads in pure HTML correctly like so:</p>

<pre><code>&lt;img src="data:image/bmp;base64,THEIMAGEINBASE64"&gt;
</code></pre>

<p><a href="https://jsfiddle.net/5j7s3Lc4/" rel="nofollow">JSFiddle of the HTML-only image here</a></p>

<p>But when loading into pdfmake like so:</p>

<pre><code>var docDefinition = {
    content: [{
        image: 'data:image/bmp;base64,THEIMAGEINBASE64'
    }]
};
pdfMake.createPdf(docDefinition).download('my.pdf');
</code></pre>

<p>...it fails (<a href="https://jsfiddle.net/gwLeLutk/" rel="nofollow">JSFiddle here</a>).</p>