docbook-apps

  • 1.  SVG Image Size

    Posted 01-17-2012 21:57
    Dear all,

    I'm evaluating to move to SVG graphics... so I did some testing. It
    works quite well, if noting else I experienced a problem when setting
    the image size:



    <mediaobject>
    <imageobject>
    <imagedata align="center" format="SVG" width="6in"
    fileref="figures/game-schema.svg"/>
    </imageobject>
    </mediaobject>


    In FO output, the image is scaled correctly, while in HTML output the
    image is not scaled at all... it is just cut on the right. I was able to
    partially solve the problem like this:



    <mediaobject>
    <imageobject role="fo">
    <imagedata align="center" format="SVG" width="6in"
    fileref="figures/game-schema.svg"/>
    </imageobject>
    <imageobject role="html">
    <imagedata align="center" format="SVG" fileref="figures/game-schema.svg"/>
    </imageobject>
    </mediaobject>


    ... but this is not what I'm look for - the image is too large. Any idea?

    Any help would be really appreciated,
    j3d

    --

    *Giuseppe Greco*
    Founder

    *Agamura, Inc.
    *6900 Lugano - Switzerland
    Phone +41 (0)91 234 51 09 ? Mobile +41 (0)79 590 33 06 ? Skype
    giuseppe.greco
    giuseppe.greco@agamura.com <mailto:giuseppe.greco@b-source.ch> -
    www.agamura.com