You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by ne...@swisslab.de on 2006/04/27 16:51:08 UTC

FOP 092 beta -> Graphic scaling - Bug?

Hello List,

I tried to move from FOP 0.25 to 0.92 beta testwise. I'm using table-cell in
wich I display external graphics. In this case I'm using a PNG grafic. 

      <fo:table-cell border="0.5pt solid black">
        <fo:block margin="1mm" text-align="center">
          <xsl:variable name="docfile">
            <xsl:text>file:/</xsl:text>
            <xsl:value-of select="translate(DOCPATH, '\', '/')"/>
            <xsl:value-of select="DOCFILENAME"/>
          </xsl:variable>
          <fo:external-graphic src="{$docfile}" height="10cm"/>
        </fo:block>
      </fo:table-cell>

In this case I scale the picture to a height of 10cm. This always worked
fine for me with FOP 0.25.
With FOP 092 beta the Picture is not scaled down. But with an somehow
strange behaviour. The table-cell itself is only 10cm height. But the
picture "flows" over the cells border into the rest of the table having its
original size. I've got the "jai_codec.jar" and "jai_core.jar" in the lib
folder and FOPs classpath. But I does'nt make any difference if I remove
them.

Is this behaviour correct?

with best regards,
Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP 092 beta -> Graphic scaling - Bug?

Posted by Web Maestro Clay <th...@gmail.com>.
Fixed:

http://xmlgraphics.apache.org/fop/faq.html#scaling-graphics

Web Maestro Clay

On Apr 27, 2006, at 8:03 AM, Jeremias Maerki wrote:
> This is quickly becoming an FAQ. Someone needs to put that on our
> website. Grmbl.

Web Maestro Clay
the.webmaestro@gmail.com

My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP 092 beta -> Graphic scaling - Bug?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
This is quickly becoming an FAQ. Someone needs to put that on our
website. Grmbl.

Short: FOP 0.20.5 was wrong. FOP 0.92beta is right. To get the same
behaviour as in FOP 0.20.5, add content-height="scale-to-fit" and
content-width="scale-to-fit". For all the details, please see the XSL-FO
specification. See also examples/fo/images.fo for examples of different
property combinations.

On 27.04.2006 16:51:08 news wrote:
> Hello List,
> 
> I tried to move from FOP 0.25 to 0.92 beta testwise. I'm using table-cell in
> wich I display external graphics. In this case I'm using a PNG grafic. 
> 
>       <fo:table-cell border="0.5pt solid black">
>         <fo:block margin="1mm" text-align="center">
>           <xsl:variable name="docfile">
>             <xsl:text>file:/</xsl:text>
>             <xsl:value-of select="translate(DOCPATH, '\', '/')"/>
>             <xsl:value-of select="DOCFILENAME"/>
>           </xsl:variable>
>           <fo:external-graphic src="{$docfile}" height="10cm"/>
>         </fo:block>
>       </fo:table-cell>
> 
> In this case I scale the picture to a height of 10cm. This always worked
> fine for me with FOP 0.25.
> With FOP 092 beta the Picture is not scaled down. But with an somehow
> strange behaviour. The table-cell itself is only 10cm height. But the
> picture "flows" over the cells border into the rest of the table having its
> original size. I've got the "jai_codec.jar" and "jai_core.jar" in the lib
> folder and FOPs classpath. But I does'nt make any difference if I remove
> them.
> 
> Is this behaviour correct?
> 
> with best regards,
> Jan


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org