docbook-apps

  • 1.  Re: [docbook-apps] Image Scaling

    Posted 04-26-2007 22:54
    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





  • 2.  Re: [docbook-apps] Image Scaling

    Posted 04-30-2007 14:09
    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
    >
    >
    >


  • 3.  Re: [docbook-apps] Image Scaling

    Posted 04-30-2007 14:14
    Hi again bob. <graphic width="5.25" scale="50"> didn't work. Is the
    default value of ignore scaling true? doesn't matter what I do the
    scale="x" factor doesn't work. Below is my syntax. And it doesn't matter
    if use graphic or imagedata.



    <graphic fileref="images/04_VideoLogix.png" scale="75" width="5.25in"/>


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