Re: [docbook-apps] Image scaling problem

From
Bob Stayton <>
Date
2011-03-14T20:36:48+00:00
ID
002f01cbe287$84f14da0$6600a8c0@pazu
Thread
Re: [docbook-apps] Image scaling problem
I would try a couple of things:

1.  Try substituting an English image in your Italian document. That will tell you if 
the issue is with the image files.

2.  Try using fop with the -foout option to generate a .fo file for each of the 
English and Italian.  Then peek inside the FO output to see if the 
<fo:external-graphic> elements have different properties.

Those two steps should narrow down the possibilities.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Daniele Barzotti" <>
To: "DocBook Apps" <>
Sent: Friday, March 11, 2011 8:55 AM
Subject: [docbook-apps] Image scaling problem


> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>