<p></p>
<p>Exporting a 16-color BMP with <code> width % 4 == 1</code> (e.g. 33x40) results either in the image being skewed, e.g.<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1165449/89711960-b1ad1200-d9e1-11ea-95d6-371309200135.png"><img src="https://user-images.githubusercontent.com/1165449/89711960-b1ad1200-d9e1-11ea-95d6-371309200135.png" alt="badbmpexport" style="max-width:100%;"></a></p>
<p>or it produces a completely invalid file, with ImageMagick reporting:</p>
<pre><code>display: length and filesize do not match `aaa largeenemy set 1.bmp' @ error/bmp.c/ReadBMPImage/846.
display: insufficient image data in file `aaa largeenemy set 1.bmp' @ error/bmp.c/ReadBMPImage/990.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1143">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZWIR3IO537DETMWRX3R7VJCNANCNFSM4PYVIJMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZXEMKCU5U3H7BONJUTR7VJCNA5CNFSM4PYVIJMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KCDXPKQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1143",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1143",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>