You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Nathan Hokanson <nd...@email.byu.edu> on 2003/04/03 17:55:56 UTC

Re: 300dpi JPEG scaling

On Sun, 2003-03-30 at 03:43, J.Pietschmann wrote:
> automatic fitting sets in. Specify the width and height you want
> in the resulting PDF in non-pixel units. The scaling property is
> not supported anyway.
> 
>  > For instance, I have taken a very large image (1.2MB) that is 1760 x
>  > 1184 pixels (5.867in x 3.947in) and am trying to scale it.  I can get it
> 
> Well, specifying
>   <fo:external-graphic src="/var/data/images/1/127.jpeg"
>   width="5.867in" height="3.947in"/>
> should be sufficient.

That did the trick!  I set the container that held the image to the
actual pixel size of the image, then can specify the width in the
fo:external-graphic tag in inches, and that "scales" the image.  

Thanks for the help!


-- 
Nathan Hokanson


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org