Some very compact PNG files are rendered wrong in 10.12 beta

Originator:tempelmann
Number:rdar://26893199 Date Originated:20-Jun-2016 06:11 PM
Status:fixed Resolved:fixed in beta 3
Product:OS X Product Version:10.12 (16A201w)
Classification:Other bug Reproducible:always
 
I have several very compact png files that OSX renders incorrectly.

This appears to be a bug in the NSImage or CGImage code that loads these picture files, as it appears in any application that uses these APIs (Preview, Quicklook and in my own apps).

Steps to Reproduce:
View the attached "Preview Click Mask.png" on 10.10 or 10.11, e.g. in Preview. Note that it shows what I also show in the file "appearance on 10.10.5.png", which is a screenshot from Preview.

Next, view the same file in 10.12 beta. Note that it shows a different image (as seen in appearance on 10.12.png). This is the bug.

If I open the image in Preview on 10.10.5, use Preview's "Adjust Size..." command to re-create the image using 100%, so that the content does not really change, and then save the changed image, it will display correctly on 10.12 beta. But it's then also larger.

This suggests that these problematic images use a special compression mode that 10.12 has stopped supporting, somehow. Or maybe not. I hope you can figure this out quickly.

The picture can be downloaded here: http://files.tempel.org/tmp/26893199.zip

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!