Bug with ImageIO?

Discussion in 'Mac Programming' started by kainjow, Sep 23, 2009.

  1. kainjow Moderator emeritus


    Jun 15, 2000
    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?
  2. gnasher729 macrumors P6


    Nov 25, 2005
    Of course you should report a bug. If you don't report it, it won't get fixed. If you report it, well :(

    I'd report it both an www.apple.com/feedback if it is a bug in the Preview application, and as an ImageIO bug through your ADC account.
  3. kainjow thread starter Moderator emeritus


    Jun 15, 2000
    Will do. It's sometimes hard to know when you've found a bug or you're just not using an API correctly. But in this case I was pretty sure since I could duplicate it with Preview.

    I seem to be finding several Quartz-related bugs recently.

Share This Page