Re: CMYK Images - bug? (Again)
Merci Guillaume, je jette un oeil. --- Guillaume Laforge <[EMAIL PROTECTED]> a écrit : > 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 - > From: fred redf > To: [EMAIL PROTECTED] > 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 | > > | | > | | 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.
Re: CMYK Images - bug? (Again)
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 - From: fred redf To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 3:07 PM Subject: Re: CMYK Images - bug? (Again) Thanks man, but i'm looking for a scriptable solutioncause we're working with *big* amounts of content...Thanks anywayFred.--- [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 |> | | > | | 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]
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 | > | || | 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]
Re: CMYK Images - bug? (Again)
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 | | | | | | | | | 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]
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]
CMYK Images - bug? (Again)
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]
CMYK Images - bug?
Is there a bug with external-graphics containing CMYK colors? I have tried several formats now and if I save them in RGB they work fine but if I save the same image in CMYK 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]