|
You should have a look at a JPEG decoder like Sun's
JIMI or Sun's JAI (Java Advanced Imaging API).
You might find some usefull methods regarding the
color model used by a JPEG image file.
Wandering around JAI's JPEGImageDecoder, it
extends ImageDecoderImpl.
There's a method called decodeAsRenderedImage(),
which returns a RenderedImage
Then you can call
getColorModel().getColorSpace().getName() or getType() on this
RenderedImage
and you should have an int representing the color
model (CMYK, RGB, etc...)
I havent tested it myself and I'm not an expert in
JAI, but I guess it should work.
Hope it helps !
Guillaume
----- Original Message -----
Sent: Tuesday, February 26, 2002 3:07
PM
Subject: Re: CMYK Images - bug?
(Again)
Thanks man, but i'm looking for a scriptable solution cause
we're working with *big* amounts of content... Thanks
anyway Fred.
--- [EMAIL PROTECTED] a
�crit : > > Well opening them in Photoshop (if you have the >
possibility) and look at > the Image->Mode > There youll see
which mode the picture is in: RGB, > CMYK, Grayscale etc. >
> Claes > > > >
|---------+---------------------------> >
|
| fred
redf | >
|
|
<popincourt2000@| > |
|
yahoo.fr> | >
|
|
| > |
| 26/02/2002
03:00| > |
|
PM
| > |
| Please
respond | > |
| to
fop-dev | >
|
|
| > |---------+---------------------------> >
> >-------------------------------------------------------------------------------------------------------------------------------| >
|
>
>
| > |
To: [EMAIL PROTECTED]
>
>
| > |
cc: (bcc: Claes
Bergsten/NO/TJG)
>
>
| > | Subject: Re:
CMYK Images - bug? (Again)
>
>
| >
> >-------------------------------------------------------------------------------------------------------------------------------| >
> > > > i have a prob with *some* jpeg images
cause they are > replaced by a black rectangle in the pdf doc.
Most > jpeg shows correctly. > How can i verify that my jpegs are
not cmyk-ed? > Fred. > > > > --- [EMAIL PROTECTED] a
�crit : > Hi, > > > > I need some feedback on
this. > > > > Is there a bug with external-graphics
containing > > CMYK colors? > > I have tried several image
formats now, and if I > > save them in RGB-mode they > >
work fine > > but if I save the same image in CMYK-mode FOP >
gives > > following error: > > Error in XObject : Error
while loading image > > file:/D:/CVS/BC/webApplication/images/tj2.jpg
: > > class java.lang.Exception - > > Image error >
> > > (I use Photoshop to save pictures) > > > >
Cheers > > > > Claes Bergsten > > >
> > > >
> > --------------------------------------------------------------------- >
> To unsubscribe, e-mail: > > [EMAIL PROTECTED] >
> For additional commands, email: > > [EMAIL PROTECTED] >
> >
> ___________________________________________________________ >
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et > en fran�ais
! > Yahoo! Mail : http://fr.mail.yahoo.com >
> --------------------------------------------------------------------- >
To unsubscribe, e-mail: > [EMAIL PROTECTED] >
For additional commands, email: > [EMAIL PROTECTED] >
> > > > >
> --------------------------------------------------------------------- >
To unsubscribe, e-mail: > [EMAIL PROTECTED] >
For additional commands, email: > [EMAIL PROTECTED] >
___________________________________________________________ Do You
Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com
--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, email: [EMAIL PROTECTED]
|