Forum Bugs

Problem with rendering Images and aspect ratio

Nendoke
Hi,

First I want to say that Price is really awesome! I had been looking for an application like this for few weeks and finally found this pearl!

anyhow, I have a problem with prince and I could not find any solution to resolve so I am going to ask it here:

"The links are in next post!"

as you can see those smaller images in PDF have different height and width from what I have in HTML document, Is there any solution to make them exactly same as what they are in HTML doc ?

Cheers,
Nen
Nendoke
mikeday
Specifying a fixed height rather than using 100% should do the trick. This does look like a Prince bug though, or at least Prince is treating it differently to Firefox. We'll look into it for the next maintenance release. Thanks for raising the issue! :)
leif
A workaround for this bug is to use

img{display:block; margin:auto}

leif

mikeday
Today we have released Prince 6.0 rev 6, which should correct this width/height calculation issue for inline blocks. Thanks for reporting the issue! :)