Loading index png results in colors too dark?
Loading index png results in colors too dark?
- Subject: Loading index png results in colors too dark?
- From: arekkusu <email@hidden>
- Date: Wed, 6 Aug 2003 12:28:36 -0700
Hi,
The archive thread "Saving PNG's and some weird window behavior"
mentions that saving png format results in the colors being too dark.
Well, a year and a half later, there is still the same kind of bug:
1) create a known color value (e.g. in Photoshop, fill rect with a nice
blue 0x003377)
2) save as indexed png format
3) load into an NSImage or NSBitmapImageRep
4) examine the pixel data
result: color has shifted slightly darker (e.g. to 0x003277)
This is happening just loading the image, not saving it.
You can also reproduce it by loading the index png with preview and
exporting it back to png.
Seems to work ok for 24bit png, and other formats like tiff.
Questions:
1) Is there any way to load an indexed png in Cocoa without it being
destroyed?
2) Why does Apple leave these bugs in the OS for years? Yes, I'll be
submitting this into RADAR.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.