<div dir="ltr">Hi,<div><br></div><div>Scribble doesn't correctly render scaled bitmaps when the scale produces ratios in the width or height of the pict.</div><div><br></div><div>The following scribble program:</div><div>
<br></div><div><div>#lang scribble/base</div><div>@(require pict)</div><div>@(bitmap "foo.jpg")</div></div><div><br></div><div>generates an html file that includes:</div><div><br></div><div><img style="vertical-align: 0px; margin: -3px -3px -3px -3px;" src="pict.png" alt="image" width="1587" height="977"/><br>
</div><div><br></div><div>However, the following scribble program that scales the image:</div><div><br></div><div><div>#lang scribble/base</div><div>@(require pict)</div><div>@(scale-to-fit (bitmap "foo.jpg") 1024 1024)</div>
</div><div><br></div><div>generates an html that includes:</div><div><br></div><div><img style="vertical-align: 0px; margin: -3px -3px -3px -3px;" src="pict.png" alt="image" width="1030" height="1003790/1581"/><br>
</div><div><br></div><div>Note the fraction, which Chrome does not parse correctly. The result is as an incredibly stretched image.</div><div><br></div><div>Best,</div><div>António.</div></div>