I think I found a bug with ImageIO but not sure.
Go to http://www.apple.com/pr/bios and download Steve Jobs' photo.
Open the tif in Preview, and Save As a JPEG (the image quality doesn't matter). Now you'll see the colors will get all funky.
I actually found this out originally by testing some ImageIO code. All I did was open the image via CGImageSource, get the CGImage from it, and add it to a CGImageDestination of type JPEG. I then viewed in Preview, and same thing.
However, if I draw the image into a *new* CGImage (CGBitmapContext), it works.
Should report a bug?
Go to http://www.apple.com/pr/bios and download Steve Jobs' photo.
Open the tif in Preview, and Save As a JPEG (the image quality doesn't matter). Now you'll see the colors will get all funky.
I actually found this out originally by testing some ImageIO code. All I did was open the image via CGImageSource, get the CGImage from it, and add it to a CGImageDestination of type JPEG. I then viewed in Preview, and same thing.
However, if I draw the image into a *new* CGImage (CGBitmapContext), it works.
Should report a bug?