Unsupported color space

Hi,
I searched the forum but could not find a way to fix my problem.
I created some .png images with Photoshop, and when I try to use them in Corona simulator, I get the following mesage :

Corona Simulator[90565] : CGBitmapContextCreate: unsupported color space.

I tried several saving options with no success.

Any idea ?
Patrick [import]uid: 47196 topic_id: 9115 reply_id: 309115[/import]

must be RGBA8 bit (32bit) png files from photoshop.

c. [import]uid: 24 topic_id: 9115 reply_id: 33256[/import]

Thanks for your answer, Carlos.
But I have already tried that and just did it again.
And I get the same result :
Corona Simulator[97352] : CGBitmapContextCreate: unsupported color space.

Another idea ?
Patrick [import]uid: 47196 topic_id: 9115 reply_id: 33284[/import]

do *NOT* embed color profile

c [import]uid: 24 topic_id: 9115 reply_id: 33290[/import]

How do you do that ?
I use the “Save for the web” option and I do not see where is that option for Embeded color profile.
Is there an article about this subject in the doc ?

Thanks for your help.
Patrick
[import]uid: 47196 topic_id: 9115 reply_id: 33302[/import]

send me psd file and png file

cicaza AT youknowhwere anscamobile DOT com [import]uid: 24 topic_id: 9115 reply_id: 33314[/import]

Did it.
Not sure of what I was supposed to do with the “youknowhwere” part of your email. I just removed it. Is that right ?
[import]uid: 47196 topic_id: 9115 reply_id: 33402[/import]

*BAM*

you are using indexed color space 8 bit

has to be RGB color space, 8 Bit. *NOT* indexed.
C. [import]uid: 24 topic_id: 9115 reply_id: 33423[/import]

How do you see that ?
When I check the original image, it IS RGB color space, 8 bit, not indexed.
When I use “Save for the web”, I choose 8 bits png and do not have any option about indexed colors or not.
I am really lost…

Patrick [import]uid: 47196 topic_id: 9115 reply_id: 33467[/import]

Hey Carlos,

It would be great if Corona could support storage and conversion of indexed pngs. I realize graphics need to be RGBA 32-bit pngs for display on iOS, but if they could be indexed for storage purposes that could really reduce the MB footprint of apps. Another benefit would be issues like the one in this thread would “just work” instead of throwing an error. [import]uid: 9422 topic_id: 9115 reply_id: 58902[/import]

Hey Xenon,

Rather than bumped 6 month old threads please post feature requests in the feature request forum :wink:

Thanks,
Peach [import]uid: 52491 topic_id: 9115 reply_id: 59063[/import]

Peach,

This feature has already been requested in the feature request forum
here

and here

and even in the documentation comments here

If I run into a problem I can’t solve while using Corona the first thing I do is search the forums for a solution. This is the thread that came up when I searched for a solution to a current issue I’m having, so I commented here.

The age of the thread seems irrelevant to me if the problem is still valid, but what is the etiquette for threads that are too old for comment so I don’t make the same mistake again?

[import]uid: 9422 topic_id: 9115 reply_id: 59126[/import]

Xenon,

It’s not a big deal, just adding a +1 in the doc comments or bumping a feature request thread with a +1 is more constructive than bumping this particular thread, which wasn’t a feature request and is in Developer Support.

Basic etiquette is the same as most forums, which is more or less what I outline in the above paragraph.

Age of thread isn’t an issue when it’s in feature request, just Developer Support should be kept for devs having issues and needing a hand, which is what this thread originally was. Bumping it for a feature request makes it unclean :wink:

Peach

[import]uid: 52491 topic_id: 9115 reply_id: 59270[/import]

i have the same error and have the image in RGB color space, 8 Bit. *NOT* indexed.

any ideas? [import]uid: 92107 topic_id: 9115 reply_id: 63146[/import]

Edou, are you certain? I’ve never seen this error with a proper image. [import]uid: 52491 topic_id: 9115 reply_id: 63207[/import]

Hi all,
By the way, I never had an answer to my question : how can you tell that an image is indexed ?
The image I used was saved “not indexed” and when I sent it to Carlos, he told me that the image was indexed but never answer to my question about how he could tell that.

Thanks for your help,
Patrick [import]uid: 47196 topic_id: 9115 reply_id: 63220[/import]

i opened it up in photoshop - forgot the name of the menu - but it said what color space it was

c [import]uid: 24 topic_id: 9115 reply_id: 63224[/import]

If you open it in photoshop the title window of the image will say “(index)” if it is an indexed png, or something like “rgb/8” if it is a 32 bit (8 bits/channel) png.

If you’re on a mac you can open it using Preview and open the inspector tool. If it’s indexed the inspector window will show “Is indexed 1” . If it’s 32 bit then it will show “depth 8, Has alpha 1”
[import]uid: 9422 topic_id: 9115 reply_id: 63242[/import]

i solved the problem by opening the image with the editor “gimp”.
After opening the image go to image -> mode and change it to rgb, my was indexed. after that, it should worked. [import]uid: 91584 topic_id: 9115 reply_id: 73964[/import]