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 Morten Isaksen <mi...@aub.dk> on 2002/10/29 17:03:42 UTC
PNG images
Hi!
FOP 0.20.4 gives me this error when I try to include a PNG image. It
works fine for jpg and svg images.
[ERROR] Error while creating area : Error creating FopImage object
(Error creating FopImage object
(http://ldi.rhoderunner.com/hragraph/servlet/chart?val=x&cate
gories=November+1999&chartValues=4&categories=April+2001&chartValues=0&s
howLegend=false&title=Alcohol+Use&series=Alcohol+Use&format=png) :
org.apache.fop.image.
They are included this way:
<xsl:template match="chart">
<fo:block>
<fo:external-graphic src="{@pngsrc}" />
</fo:block>
</xsl:template>
The output format is PDF.
--
Morten Isaksen
misak@aub.dk - http://www.aub.dk/~misak
Re: PNG images
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Morten Isaksen wrote:
> FOP 0.20.4 gives me this error when I try to include a PNG image. It
> works fine for jpg and svg images.
>
> [ERROR] Error while creating area : Error creating FopImage object
> (Error creating FopImage object
> (http://ldi.rhoderunner.com/hragraph/servlet/chart?val=x&cate
> gories=November+1999&chartValues=4&categories=April+2001&chartValues=0&s
> howLegend=false&title=Alcohol+Use&series=Alcohol+Use&format=png) :
> org.apache.fop.image.
First of all you need jimi libarary to work with png (look in archives how to
install it).
Secondly, make sure your servlet returns correct mime type, I believe it must
be "image/png".
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
Re: PNG images
Posted by rh...@telerama.com.
Do you have the jimi classes in your classpath?
On Tue, 29 Oct 2002, Morten Isaksen wrote:
> Hi!
>
> FOP 0.20.4 gives me this error when I try to include a PNG image. It
> works fine for jpg and svg images.
>
> [ERROR] Error while creating area : Error creating FopImage object
> (Error creating FopImage object
> (http://ldi.rhoderunner.com/hragraph/servlet/chart?val=x&cate
> gories=November+1999&chartValues=4&categories=April+2001&chartValues=0&s
> howLegend=false&title=Alcohol+Use&series=Alcohol+Use&format=png) :
> org.apache.fop.image.
>
> They are included this way:
>
> <xsl:template match="chart">
> <fo:block>
> <fo:external-graphic src="{@pngsrc}" />
> </fo:block>
> </xsl:template>
>
> The output format is PDF.
>
> --
> Morten Isaksen
> misak@aub.dk - http://www.aub.dk/~misak
>
>
>
>