Obsolete
Status Update
Comments
ro...@android.com <ro...@android.com> #2
Which device? All devices supported in AOSP run either 4.1 or 4.3 at this point.
da...@gmail.com <da...@gmail.com> #3
Device Samsung Galaxy with android 4.0.4
mj...@gmail.com <mj...@gmail.com> #4
This report applies to an Android-based device, and the issue tracker where you reported it specializes in issues within the Open Source source code of the Android platform.
We are not able to provide support for individual devices. Please report this issue in the support forum for your device, which might be hosted by your device manufacturer or by the operator where you got your device.
We are not able to provide support for individual devices. Please report this issue in the support forum for your device, which might be hosted by your device manufacturer or by the operator where you got your device.
yo...@gmail.com <yo...@gmail.com> #5
when I use a device when its camera can take a cmyk picture,I cannot open it normally in an ImageView widget.Its terrible!!!
dr...@gmail.com <dr...@gmail.com> #6
I came across the same issue.
Also when I open the image with ICC profile on gnome image viewer, the property -> details -> other -> colorspace shows "Internal error". it may be problem. So I converted jpg to png.
Also when I open the image with ICC profile on gnome image viewer, the property -> details -> other -> colorspace shows "Internal error". it may be problem. So I converted jpg to png.
de...@deive.co <de...@deive.co> #8
[Comment deleted]
Description
What steps will reproduce the problem?
- Try to display the attached picture with android sdk or with the basis android browser. The particularity of this picture is that it use an embedded ICC profile and it is in CMYK.
What is the expected output? What do you see instead?
- instead having a pointer (the display) on my bitmap I have a null pointer and the following message in the logcat :
D/skia ( 1537): --- decoder->decode returned false
What version of the product are you using? On what operating system?
I was able to reproduce the issue in Android: 2.2, 2.3, 3.0, 3.1, 3.2, 4.0
but probably it goes back to Android 1.0
Please provide any additional information below.
Here the code I used to call the skia decoder :
Bitmap bt = BitmapFactory.decodeFile(getFilesDir()+"/"+filename);
if(bt==null)
Log.v(TAG, "\tError !!!!");
I used imagemagick:
convert -colorspace RGB mycmyk.jpg mybmp.jpg
mycmyk.jpg can't be decoded:
D/skia ( 1537): --- decoder->decode returned false
and mybmp.jpg is decoded correctly.
No known workaround, the bug is probably in the low level (C) function that actually decodes the image, the only possible way I can think about to decode jpeg with CMYK colorspace in Android is to avoid the android BitmapDecoder and write a custom jpeg-decode function --- that wouldn't be as performant as the BitmapDecoder and probably some issue with memory management will raise as well, I may be wrong but Android (or at least some version of it) manage image memory in a different, low-level, space that's not directly accessible to the public API.
According to skia developers the skia code used in Android is a modified version of the one used by upstream, see comment