OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Image scaling problem


Hi,

thanks all of you for the replies.
I found that the problem was the image colour depth.
Changing it from 32 to 24 make the 'scale' works.

But like suggested by Clark, in the future I will use contentwidth
and scalefit if the scale attribute is deprecated.

Regards,
Daniele.


On 11/03/2011 16:55, Daniele Barzotti wrote:
> Hi,
> 
> I'm working with docbook-xsl-1.76.1 to produce PDF documents with
> FOP-1.0 on Windows:
> 
> D:\docbook\fop-1.0\fop.bat -xsl Userguide_FO.xsl -xml Userguide_IT.xml
> -pdf Userguide_IT.pdf
> 
> I have two source file (one in English and one Italian).
> Obviously all tags are the same (eg, for the images) and differs only
> for text:
> 
> <figure>
>   <title>Main window</title>
> 
>   <mediaobject>
>     <imageobject>
>       <imagedata align="center" fileref="Images_IT/IMAGE_007.png"
>                  scale="80"></imagedata>
>     </imageobject>
>   </mediaobject>
> </figure>
> 
> 
> All images are scaled by 80%. The problem is that in the English version
> it works, while in the Italian version the images are not scaled!
> 
> My custom xsl is the same for both...the only thing that differ is that
> the English images are PNG with 24 colour depth, while the Italian
> images are PNG with 32 colour depth.
> 
> Could someone give me some suggestions?
> 
> Regards,
> Daniele.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]