Menu ▾ ▴

#62 Read 16 bit BMPs Correctly

closed
None
5
2012-10-31
2010-09-03
Anonymous
No

Without this, I had some perfectly legal images I couldn't read correctly.

Discussion

  • Floris van den Berg

    You can't use SEEK_SET in FreeImage. It doesn't work with the open io idea where files can be incorporated into other files or bitmaps are opened from memory. You have to use SEEK_CUR.

     
  • Anonymous

    Anonymous - 2010-09-04

    I copied this strategy from the 8 bit if-branch, which uses SEEK_SET.

     
  • Anonymous

    Anonymous - 2010-09-04

    I copied this strategy from the 8 bit if-branch, which uses SEEK_SET.

     
  • Anonymous

    Anonymous - 2010-09-04

    I copied this strategy from the 8 bit if-branch, which uses SEEK_SET.

     
  • Floris van den Berg

    Then that's a bug that needs fixing. I'll file a bug report.

     
  • Hervé Drolon

    Hervé Drolon - 2011-01-06

    Hi,

    Do you have a test image that show the problem ?

    Hervé

     
  • Anonymous

    Anonymous - 2011-01-07

    Check http://oakeshott.compbio.cs.cmu.edu/freeimage_bug_demo.bmp
    (too big to attach here)

    The image is loaded with a shift: you can see that the two corner pixels are 0, which is wrong.

     
  • Hervé Drolon

    Hervé Drolon - 2011-01-10

    Thanks for the patch, it is now merged with the CVS.
    Hervé

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Anonymous
Anonymous

Add attachments
Cancel