In Android how to decode a jpeg in cmyk color format?
Asked Answered
C

2

5

I'm trying to decode a jpeg that is in CMYK color format. BitmapFactory returns null. I googled around but with no luck. Is it possibile Android team did not the right job supporting all kind of color format?

I'm using Android 2.2.

Thank you so much.

Chak answered 30/9, 2011 at 9:34 Comment(0)
C
3

Found the solution: loading the JPEG using the external library libjpeg compiled with NDK. It has been a hard work, but I did it!

Chak answered 3/10, 2011 at 12:8 Comment(2)
Would you post some code showing how you did it? Then other users will benefit.Placid
Since it's a mixture of Java and C it would be better if I could show the entire project. Where could I upload it in a safe manner? I mean, in order to make it available for a long time.Chak
A
0

It's very possible I'd say:

http://code.google.com/p/skia/issues/detail?id=69

Aboveboard answered 30/9, 2011 at 9:48 Comment(5)
Status of that issue is set to as new. It means it was not corrected, doesn't it?Chak
Yes, so you're not likely so see any change soon. Isn't fixed on 2.3.6 at least.Aboveboard
do you know other solutions? other libs for reading jpeg compatible with Android?Chak
Porting/building lcms in Android shouldn't be impossible (but not trivial). littlecms.comAboveboard
I used libjpeg compiled with NDK :)Chak

© 2022 - 2024 — McMap. All rights reserved.