Showstopper: Grayscale JPEGs cause problems

Hi there,

I just submitted this as a bug report, but I’m also posting here since this is stopping me from being able to ship a finished app, since I cannot find a suitable workaround.

The problem is that display.loadRemoteImage not only loads a grayscale JPEG incorrectly, but it also acts like it did load it correctly and returns a valid, but unusable display object to the listener.

2 Possible fixes:

  1. (best fix) Loading of grayscale JPEGs must be supported (should be trivial since the JPEG loader most likely already supports it, the image just needs to be correctly made into a 32bit RGBA bitmap afterwards)

Or

  1. (minimal fix) The listener must be fixed to not be fed a valid, but unusable display object
    This problem was brought up by someone else earlier, and I recently commented on it when I found out it became a showstopper for me:

https://developer.anscamobile.com/forum/2010/12/06/corona-simulator-wont-load-grayscale-images

Thanks!

Trond. [import]uid: 34372 topic_id: 7318 reply_id: 307318[/import]