[xep-support] problem using image scaling
Arjan Loeffen
arjan at salience.nl
Fri Dec 27 03:13:58 PST 2002
David,
thanks for your prompt answer.
This strategy however scales *all* images to the block size. It upscales
smaller images too. How can I avoid this without having to decide on the
exact block width where the image is inserted? I want smaller images to
remain small, and larger images to scale down....
As discussed in some earlier contributions to this list, I am not able to
determine the room available on the page for the image; I am however able to
determine the image's pixel size if required (though I'd like to avoid
having to add this information to the XSLT/FO info explicitly).
arjan
-----Original Message-----
From: owner-xep-support at www.renderx.com
[mailto:owner-xep-support at www.renderx.com]On Behalf Of David Tolpin
Sent: Friday, December 27, 2002 6:33 AM
To: xep-support at renderx.com
Subject: Re: [xep-support] problem using image scaling
> For XEP 3.10 you implemented:
> - implemented viewport size ('width' and 'height') attributes on images;
> added 'scale-to-fit' value to 'content-width' and 'content-height';
>
> I tried to make use of this feature using:
>
> <fo:external-graphic src="url(img\large-image.gif)"
> content-width="scale-to-fit"
> scaling="uniform"/>
>
> in order to scale down the large image to fit the block it is in.
> But that doesn't work. What's missing?
Hello Arjan,
scale-to-fit scales the size of the image to the size of the viewport.
Vieport's size is either set explicitely by attributes width and height
or is determined from image's size (i.e. pixels times resolution).
That is what the Recommendation says.
What you probably need is
<fo:external-graphic src="url(img/large-image.gif)"
content-width="scale-to-fit"
width="100%"
scaling="uniform"/>
I.e. make the image as wide as the block is and scale its height
proportionally.
David
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list