CIIImage silently discard color information for some PNG files

Originator:djkeogan
Number:rdar://13806433 Date Originated:
Status: Resolved:
Product:iOS Product Version:
Classification: Reproducible:Yes
 
03-May-2013 02:38 PM Daniel Keogan:
Summary:

Creating a CIImage from some PNG files discards color information, without reporting any error or problem with the file. The same file is handled correctly by UIImage and all image utilities I tried (e.g. Photoshop and Preview).

Steps to Reproduce:

Run the attached project. The project is Apple's PocketCoreImage sample code with a single change; it now loads my PNG instead of the included one.

The issue is reproducible on the simulator (6.1) and an iPhone 5 running 6.0.1 10A525)

Expected Results:

When no filter is applied the image should be color.

Actual Results:

CIImage is the monochrome version of the image (i.e. color information has been lost).

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!