scale image if too large

2008-11-13 Thread Kendall Shaw
Looking at the mailing list archives, it looks like I can't do this, but I thought I'd check. If the image will fit within some size, I don't want to scale the image. If it is too large, I want to scale it to fit. Can it be done, without knowing the dimensions of the image? Kendall

Re: scale image if too large

2008-11-13 Thread Andreas Delmelle
On 13 Nov 2008, at 20:31, Kendall Shaw wrote: Hi Looking at the mailing list archives, it looks like I can't do this, but I thought I'd check. If the image will fit within some size, I don't want to scale the image. If it is too large, I want to scale it to fit. Can it be done, without

Re: scale image if too large

2008-11-13 Thread Jeremias Maerki
It does work. scale-down-to-fit is supported since FOP 0.95 beta and is exactly what is needed. Basically, you need to do this: fo:external-graphic src=my.jpg inline-progression-dimension.maximum=100% content-width=scale-down-to-fit/ On 13.11.2008 20:39:21 Andreas Delmelle wrote: On 13 Nov

Re: scale image if too large

2008-11-13 Thread Kendall Shaw
Yes, it works. Thanks! Jeremias Maerki wrote: It does work. scale-down-to-fit is supported since FOP 0.95 beta and is exactly what is needed. Basically, you need to do this: fo:external-graphic src=my.jpg inline-progression-dimension.maximum=100% content-width=scale-down-to-fit/ On 13.11.2008