Re: [xep-support] problem using image scaling

From: David Tolpin (dvd@renderx.com)
Date: Thu Dec 26 2002 - 21:33:02 PST

  • Next message: joachim.albacke@om.com: "[xep-support] Joachim Albacke/OMT/OMGROUP is out of the office."

    > 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@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



    This archive was generated by hypermail 2.1.5 : Thu Dec 26 2002 - 21:27:51 PST