HomeDobuDishTroubles with image-size

Troubles with image-size


Hi all together,

when using the inlinemediaobject all works fine; but if I add dimension-specifications, in html the image isn't shown (width and height without values) and in pdf the dimension-spec is ignored:

<inlinemediaobject>
<imageobject>
<imagedata contentdepth="150px" contentwidth="150px"
fileref="resource/P1050263.jpg" />
</imageobject>
</inlinemediaobject>

alternative

<imageobject>
<imagedata contentdepth="" contentwidth=""
fileref="resource/P1050263.jpg" scalefit="1"
width="150px" />
</imageobject>
</inlinemediaobject>

in HTML width and height without values:

<span class="inlinemediaobject"><img src="resource/P1050263.jpg" width="" height=""></span>

many thanks for your help
manfred
Manfred | email
April 1 2009, 08:59 AM
If I may suggest:

Yes, this seemed to be a problem with the specific DocBook XSL version in dobudish. ("bug with image size attributes" - ID: 1675074 - http://sourceforge.net/tracker/index.php?func=detail&aid=1675074&group_id=21935&atid=373747)

You can get e.g. a later DocBook XSL (like docbook-xsl-1.74.3) and replace the contents of system\docbook-xsl with this. Back up the original files first, in case you find something else going wrong ...
etienne | email
2 days, 2 hours since original post
Many thanks for your help!

I've replaced the docbook.xsl as mentioned. Now the image are shown, but the size-specifications as width, height, contentwidth,... are ignored:

<img src="resource/11c.jpg">

Any idea?

Manfred
Manfred | email
2 days, 2 hours since original post
This is the solution:
in <dobudisch>\system\custom-xsl\common-custom.xsl
change
<xsl:param name="ignore.image.scaling" select="1"/>

to
<xsl:param name="ignore.image.scaling" select="0"/>

Example for the xml-file:
<mediaobject>
<imageobject>
<imagedata fileref="resource/11c.jpg" width="75px" />
</imageobject>
</mediaobject>

greetings to all
Manfred
Manfred | email
2 days, 11 hours since original post
This topic is closed