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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Patch against HEAD
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.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
I copied this strategy from the 8 bit if-branch, which uses SEEK_SET.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
I copied this strategy from the 8 bit if-branch, which uses SEEK_SET.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
I copied this strategy from the 8 bit if-branch, which uses SEEK_SET.
Then that's a bug that needs fixing. I'll file a bug report.
Hi,
Do you have a test image that show the problem ?
Hervé
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
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.
Thanks for the patch, it is now merged with the CVS.
Hervé
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).