This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] HTML / HTMLHelp: ignore.image.scaling parameter


On Tue, May 06, 2003 at 06:12:22PM +0930, Paul A. Hoadley wrote:
> Hello,
> 
> I am using htmlhelp.xsl (from 1.60.1) to generate HTML Help, though I
> suspect this is a general HTML stylesheet issue.
> 
> I have some PNG images which I have scaled to a particular width for
> PDF output.  For example:
> 
>         <figure id="fig:optform1">
>           <title>&optform;</title>
>           <mediaobject>
>             <imageobject>
>               <imagedata fileref="images/screenshots/fig01.png"
>                 format="PNG" align="center" contentwidth="12cm"
>                 scalefit="1"/>
>             </imageobject>
>           </mediaobject>
>         </figure>                                        
> 
> In HTMLHelp (and HTML) I want to use the full size, unscaled
> screenshot.  I have tried:
> 
>   <xsl:param name='ignore.image.scaling' select="1"/>
> 
> in my driver, but I still get explicit widths added to the <img>
> elements in the HTML output:
> 
> <img src="images/screenshots/fig01.png" align="middle"
>  width="425.196850393701" alt="Options Form">
> 
> Shouldn't that parameter achieve what I want?  Can someone suggest an
> alternative that doesn't involve adding a new <mediaobject> for a HTML
> version of every image I use 'scalefit' on?  :-)

Yes, that parameter should work.  It looks like the
contentwidth attribute is being processed even when that
parameter is set, which is a bug in the stylesheet.
I went ahead and filed a bug report (733406) on it.
I'd fix it, but the image scaling code is a bit complex,
and I think Norm should look at it.

The scalefit attribute isn't the problem, because it is
ignored when contentwidth is used.  The contentwidth,
scale, and scalefit attributes are mutually exclusive. If
more than one of these attributes is used on an image,
then the earliest one in the list takes precedence.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]