docbook-apps

  • 1.  images scaling problem for print output

    Posted 01-12-2011 15:13
    Hello all,

    I am trying to use the images unscaled to use them in their actual size for
    print output. But so far all my approaches failed. All images always use the
    available space on the page, which decreases quality massively whenever
    images are smaller than the available space. My image objects look like
    that:

    <mediaobject>
    <imageobject>
    <imagedata fileref="images/logo.png"/>
    </imageobject>
    </mediaobject>


    I went through everything related to graphics and customization in the
    Docbook XSL Guide and the docbook-apps. Nothing seems to help. All
    attributes used for image sizing (scalefit, width, contentdepth, …) in my
    custom-fo file are either ignored by xsltproc or do not even show up in the
    console. Other customizations work, though.

    Is it really that complicated leave pictures unscaled? Do I have to work
    with templates for such an "easy" task? Could somebody give me an example of
    what I have to write into the custom-fo file to leave my images unscaled?
    Any help would be highly appreciated!

    Thanks,
    Sebastian



    Askozia - Intuitive Telephony
    http://www.askozia.com

    Salzdahlumer Strasse 46/48
    D-38302 Wolfenbüttel
    Germany
    Tel: +49 (0)5331 900 989 202
    Fax: +49 (0)5331 900 989 199



  • 2.  RE: [docbook-apps] images scaling problem for print output

    Posted 01-12-2011 16:37
    Hello Sebastian,



    > I am trying to use the images unscaled to use them in their actual size
    for print output.



    what do you mean by the actual size in the printed output? ;-)



    The final size is dependent on the image resolution. PNG images can store
    this info (in case of screenshots it varies according to the display
    settings) and this info can be used later by xsl-fo processor. If this info
    is not available, XEP uses 120 dpi instead for example. If the image
    resolution is lower, it seems to be bigger in the output. As mentioned, the
    screenshot resolution can vary if images are taken by different users so the
    final image size can be different in the output, althought a pixel size is
    the same. In my case these differences are normalized by imagemagick utility
    before processing, where all resolution info is replaced by a single value
    (120 dpi) - keeping the original pixel size.



    Regards,

    Jan