Results 1 to 2 of 2

Thread: Corrupted colors in jpeg images with SVN 2.3

  1. #1

    Default Corrupted colors in jpeg images with SVN 2.3

    When I load some jpeg images they get corrupted like this:

    Click image for larger version. 

Name:	jpeg_screenshot.jpg 
Views:	13 
Size:	282.5 KB 
ID:	554

    I've attached a minimal test application that demonstrates this problem.

    The problem appears only with SVN 2.3. 2.2.x series work correctly.

    (Also note that the image was generated programmatically by CL_JPEGProvider::save(). The bug goes away when saving this image in photoshop).
    Attached Files Attached Files

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    548

    Default

    After a bit of investigation I discovered that the problem with this JPEG file is that it is not a standard JFIF JPEG. It is an Adobe JPEG file with a RGB color space instead of the usual YCrCb color space.

    I've committed a fix to SVN that adds support for reading Adobe JPEG files and also fixed the bug that ClanLib's JPEG compressor wrote the wrong type of JPEG file.

Similar Threads

  1. Problem loading this jpeg image in svn 2.3
    By huntercool in forum ClanLib: Developer Chat
    Replies: 1
    Last Post: 02-01-2011, 03:38 PM
  2. Images
    By attle in forum Novashell Game Creation System
    Replies: 0
    Last Post: 02-04-2008, 09:45 AM
  3. Replies: 18
    Last Post: 10-30-2007, 05:01 PM
  4. Latest windows build corrupted?
    By whisperstorm in forum Novashell Game Creation System
    Replies: 1
    Last Post: 03-03-2007, 12:22 PM
  5. inverted colors...
    By rabidwolf9 in forum Dink Smallwood HD
    Replies: 0
    Last Post: 10-21-2004, 10:59 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •