If the image data is based on a 4 component colorspace (CMYK), HOW COULD
YOU "fall back" to a 3 component colorspace (RGB)?  You can't just throw
one of the components out - and if you did, you'd get a VERY WEIRD colored
image.

As to your problem, we'd need to see the PDF and/or the PNG in question...

Leonard

On 9/19/11 3:17 AM, "qqzx2kp" <[email protected]> wrote:

>In case anyone is interested, I have some more information.
>
>I'm 95% sure that the image data is OK; the problem is with the embedded
>ICC
>profile. I'm 75% sure that the profile is OK, but invalid in this context
>because it uses a CMYK color space.
>
>Color management isn't my strong suit, but it seems strange to me
>(assuming
>I'm correct) that rendering would fail completely if the profile is
>incorrect. Shouldn't it just fall back to something like DeviceRGB?
>
>I would appreciate if anyone can confirm what I've found so I can add
>something to flag an error before the PDF is created. What I'm think of is
>getting the ICC_Profile object from the Image, and checking that
>getColorSpaceType() is valid for image type.
>
>--
>View this message in context:
>http://itext-general.2136553.n4.nabble.com/PNG-and-Insufficient-data-for-a
>n-image-tp3817021p3822821.html
>Sent from the iText - General mailing list archive at Nabble.com.
>
>--------------------------------------------------------------------------
>----
>BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
>Learn about the latest advances in developing for the
>BlackBerry&reg; mobile platform with sessions, labs & more.
>See new tools and technologies. Register for BlackBerry&reg; DevCon today!
>http://p.sf.net/sfu/rim-devcon-copy1
>_______________________________________________
>iText-questions mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>iText(R) is a registered trademark of 1T3XT BVBA.
>Many questions posted to this list can (and will) be answered with a
>reference to the iText book: http://www.itextpdf.com/book/
>Please check the keywords list before you ask for examples:
>http://itextpdf.com/themes/keywords.php


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to