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 Marcus Andersson <ma...@home.se> on 2003/04/03 20:03:48 UTC

Jpeg images rendered black

Hello

First of all: I am using FOP-0.20.4 under jdk1.4.1. 

When I insert external-graphics that are in the gif and png formats everything works nice but when I try to include a jpg it just renders a black rectangle. Why? I have looked in the faqs and some other places but the only related is the thing about having to include jimi for pngs. Isn't jpgs supported or have I done something else wrong?

Example code: <fo:external-graphic src="someimg.jgp"/>

/Marcus

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


Re: Jpeg images rendered black

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Marcus Andersson wrote:
> Hello
> 
> First of all: I am using FOP-0.20.4 under jdk1.4.1. 
> 
> When I insert external-graphics that are in the gif and png formats everything works nice but when I try to include a jpg it just renders a black rectangle. Why? I have looked in the faqs and some other places but the only related is the thing about having to include jimi for pngs. Isn't jpgs supported or have I done something else wrong?
> 
> Example code: <fo:external-graphic src="someimg.jgp"/>

This sounds like the following bug:
http://archives.apache.org/bugzilla/show_bug.cgi?id=11301

which has been fixed in 0.20.5rc

Christian


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


Re: Jpeg images rendered black

Posted by Marcus Andersson <ma...@home.se>.
I think it's a typo. I have (after a couple of times) noticed that the processor shouts out loud when trying to reference an image that isn't there. That isn't the case now...

/Marcus

----- Original Message ----- 
From: "Clay Leeds" <cl...@medata.com>
To: <fo...@xml.apache.org>
Sent: Thursday, April 03, 2003 8:42 PM
Subject: Re: Jpeg images rendered black


> Marcus,
> 
> I have only seen this myself, when trying to use a GIF. BTW, it might be
> just a typo, but you have "someimg.jgp" below. Was that just a typo or
> should it be "someimg.jpg"?
> 
> ;-p
> 
> Marcus Andersson wrote:
> > Hello
> > 
> > First of all: I am using FOP-0.20.4 under jdk1.4.1. 
> > 
> > When I insert external-graphics that are in the gif and png formats everything works nice but when I try to include a jpg it just renders a black rectangle. Why? I have looked in the faqs and some other places but the only related is the thing about having to include jimi for pngs. Isn't jpgs supported or have I done something else wrong?
> > 
> > Example code: <fo:external-graphic src="someimg.jgp"/>
> 
> 
> -- 
> Clay Leeds - cleeds@medata.com
> Web Developer - Medata, Inc. - http://www.medata.com
> PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 

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


Re: Jpeg images rendered black

Posted by Clay Leeds <cl...@medata.com>.
Marcus,

I have only seen this myself, when trying to use a GIF. BTW, it might be
just a typo, but you have "someimg.jgp" below. Was that just a typo or
should it be "someimg.jpg"?

;-p

Marcus Andersson wrote:
> Hello
> 
> First of all: I am using FOP-0.20.4 under jdk1.4.1. 
> 
> When I insert external-graphics that are in the gif and png formats everything works nice but when I try to include a jpg it just renders a black rectangle. Why? I have looked in the faqs and some other places but the only related is the thing about having to include jimi for pngs. Isn't jpgs supported or have I done something else wrong?
> 
> Example code: <fo:external-graphic src="someimg.jgp"/>


-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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


Re: Jpeg images rendered black

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Marcus Andersson wrote:
> everything works nice but when I try to include a jpg it just renders a black
> rectangle. Why? I have looked in the faqs and some other places but the only
> related is the thing about having to include jimi for pngs. Isn't jpgs
> supported or have I done something else wrong?

JPG images can contain all kind of weird color lookup tables and
color profiles, not all variants are supported (not to mention the
*illegal* subformats seen here and there in the wild). Just try a
JPG produced by a different graphic program. It may help to
specify 24bit color output.

I personally never met an unsupported JPG subformat.

J.Pietschmann


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