First, Bob, thanks for suggesting how to add a customized version of
that xsl template to the customization layer where that one line is
changed. If you want me to write the original bug up, I will be happy to
do that.
I think there's one problem with that solution you suggested.
Here's what I use to test:
<mediaobject>
<imageobject >
<imagedata fileref="images-epub/hillyer-1918.jpg" width="50%"
/>
</imageobject>
</mediaobject>
First, if you use width="50%" inside the IMAGEDATA element, it will render
by default to a table. (I just learned that you can turn it off by changing
this parameter from 1 to 0: ie. <xsl:param name="make.graphic.viewport"
select="0"></xsl:param>). So you need to make this change to this
parameter first.
More importantly, after I add a customized version of that template to my
customization layer, it renders as:
[The problem is that while it contains the correct file declaration, it
also includes the wrong width attribute at the end]
I suspect that Bob can figure that one out -- though it's still above my
pay grade :) .
Philo, sometimes the dumb and easy solution suits me just fine --
especially if it's just for one page or one chapter. So manually adding
classes to your IMG element isn't a bad idea as a short-term solution. I
will warn you: in my experience, Kindle reading systems are unpredictable
when rendering a lot of images; it's hard to figure out where on the page
they render.
Robert
--
Robert Nagle
5115 Sandyfields Ln Katy, TX 77494
(Cell) 832-251-7522