Forum Feature requests

object-fit

afingret
It would be nice if Prince supported the css property "object-fit" for images
mikeday
Indeed it would. You can sort of do this with background-size, in the meantime. :)
imperator
+1 for this... it would be really useful when designing layouts where the exact aspect ratio of the input images is unknown, but the result must fit in a box of an exact shape.

True it can be hacked around by using background-size, but that involves modifying the HTML – a CSS-only solution would be nice.

Any chance of getting object-fit onto the roadmap...?

Edited by imperator

mikeday
Sure. :)
jamespaden
We had another request for this.

Try DocRaptor - PrinceXML web service and official PrinceXML partner

mikeday
We will take another look at this, as there have been some changes to the CSS images spec.
mikeday
Prince latest builds now support the object-fit and object-position properties. :D
imperator
Yay! :-D