On the chat someone recommended removing the color profile information. I created this image in Gimp and Paint and added no specific color profile. Should I be using a Unity color profile?
The world depends on having the color show as 192 with GetPixel.
I’ll try saving without a background color and 0 compression.
I know these aren’t compressed because if I tried to load a compressed texture into a Unity GUI element, it crashes. And WWW.textures don’t crash the GUI.
Like the WWW.texture documentation says, gamma correction is performed on PNG files that have gamma setting stored. If you do not want any correction to happen, do not save the PNG file with gamma information.
Both images actually have gamma value set to 0.45455. I think Gimp implicitly attaches some color profile based on some preferences somewhere (whenever I encounter this, I have to google for that to find where). The difference between the images is that one is in sRGB, and another is in Calibrated RGB color spaces (but both have gamma).
IIRC, when loading the images we do apply gamma correction, but do not do color profile conversion. So both images end up loading the same (since they have the same gamma).
If you want us to improve PNG decoding in the future, file a bug with those images and a project that shows the problem, because problem reports on the forums tend to be forgotten.
If gimp is not able to export PNG without the gamma information then you don’t have an option.
but given that it supports photoshop 6 plugins, you might want to give superpng a try