Forum Bugs

Images not resized symmetrically

lordlinton
Insert an image with width and height attributes.
If the width attribute is set wider than the pdf document the image will be resized to fit the pdf.

eg.
<img>

Unfortunately only the width is changed, not the height. This results in stretched images. If this is a feature it needs to be optional.

If you don't specify the width and height attributes the image is resized correctly.

Cheers,
Steven.

ps. PrinceXML is awesome!
mikeday
You're right, Prince is not preserving the aspect ratio of the image if both a width and a height is specified. I've added this issue to the roadmap; hopefully we can fix it for the next maintenance release, due out next week.
mikeday
This issue has been fixed in Prince 6.0 rev 2. Thanks for reporting the issue! :)
phydog
Hi,

It looks like it is not implemented for the max-height property (tested with version 10r4)
Could you please also help with it?

Test file is attached.

Thanks a lot,
Haiyang
  1. img_resize.html0.7 kB