Yes Bob. But would this work for both PDF and HTML? Most people are
saying to keep two sets of graphics for both html and pdf. But that's
lots of work. I wanted to use the same image for both html and pdf, and
possible add a pop-up scaling for my html stylesheet.
I await your final input regarding width="5.25in" for both html and pdf.
On Thu, 2007-04-26 at 15:53 -0700, Bob Stayton wrote:
> ?
>
> You should use width="5.25in" to set the viewport area reserved for
> the graphic, and then scale="50" will make it half that size. The
> contentwidth attribute specifies the size of the output image. In
> your example, the contentwidth attribute is overriding the scale
> attribute. See the second-to-last bullet item in this section:
>
>
http://www.sagehill.net/docbookxsl/ImageSizing.html>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
>
bobs@sagehill.net>
>
>
Original Message -----
> From: Mykone Saunders
> To: docbook-apps@lists.oasis-open.org
> Sent: Thursday, April 26, 2007 10:39 AM
> Subject: [docbook-apps] Image Scaling
>
>
>
> Hello I am trying to scale an image to "50%" of a "5.25in"
> page margin. Below is the code.
>
>
>
> <graphic fileref="images/04_VideoLogix.png" scale="50"
> contentwidth="5.25in"/>
>
>
> The problem is that the image is not scalling at all it's only
> rendering to the full 5.25in defined in contentwidth. Am I
> doing something wrong? I even use <imagedata/> instead of
> <graphic/> and that still didn't work. What am I doing wrong.
>
> Please help.
>
> Thanks.
>
> XML Environment
> ==================================
> - Docbook XML 4.4
> - Docbook XSL 1.72.0
> - RenderX XEP 4.9