Feature request: use depth and width from <imagedata>

Steinar Bang <[email protected]> Sun, 27 Apr 2003 23:54:37 +0200
Newsgroups gmane.text.docbook.db2latex.devel
Organization Probably a good idea
Message-ID <[email protected]>
I would like db2latex to make use of any depth and/or width attributes
found on <imageobject> elements, to do scaling on the included image.

Some of my documents contain images that are shown full size in HTML,
but have been scaled down in PDF, eg.:

<mediaobject>
  <imageobject role="html">
    <imagedata fileref="img/test.png" format="PNG"/>
  </imageobject>
  <imageobject role="fo">
    <imagedata fileref="img/test.png" format="PNG" depth="6cm" scalefit="1"/>
  </imageobject>
</mediaobject>

The db2latex XSL style sheets does not make use of the depth and width
attributes of <imagedata>, so it isn't enough to make db2latex use the
fo <imageobject>.

I have to create an extra <imageobject> for use by db2latex, in each
<mediaobject>, eg.:

<mediaobject>
  <imageobject role="html">
    <imagedata fileref="img/test.png" format="PNG"/>
  </imageobject>
  <imageobject role="fo">
    <imagedata fileref="img/test.png" format="PNG" depth="6cm" scalefit="1"/>
  </imageobject>
  <imageobject role="latex">
    <imagedata scale="25" fileref="img/test.png" format="PNG"/>
  </imageobject>
</mediaobject>

I also have to figure out a suitable scaling factor for each image,
by trial and error, instead of scaling the image to the expected
size. 



- Steinar



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf