Discussion:
Feature request: use depth and width from <imagedata>
Steinar Bang
2003-04-27 21:54:37 UTC
Permalink
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
James Devenish
2003-04-27 23:34:46 UTC
Permalink
Post by Steinar Bang
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.
DB2LaTeX does honour the width attribute (but depth support was missing).




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Steinar Bang
2003-04-28 18:15:32 UTC
Permalink
Post by James Devenish
DB2LaTeX does honour the width attribute (but depth support was missing).
It may be that nobody else uses depth? :-)

I used it by mistake. I meant to use width, and when I figured out
what I had done wrong, all images had already been scaled to a
suitable size for printing, and I just let it be.



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

Loading...