Bug#841089: wrong file type recognized for J2K and WEBP images (and most likely SGI, EXR, JP2, PFM, PICT, RAW, JXR)

2017-01-04 Thread Boris Lesner
Hi, I am not a FreeImage dev at all, just a user who encountered a bug and tried to fix it. Maybe my patch wasn't the best way to solve this issue, it passed a very basic unit test but was merely a suggestion. The real problem here is that a previous debian patch in FreeImage, disabled the s

Bug#841089: wrong file type recognized for J2K and WEBP images (and most likely SGI, EXR, JP2, PFM, PICT, RAW, JXR)

2016-10-18 Thread Boris Lesner
I attached the wrong testcase, it showed the bug for for webp images. Here is the one that works for j2k images. Regards Boris #include "FreeImage.h" #include int main(int argc, char** argv) { FREE_IMAGE_FORMAT fif = FreeImage_GetFileType(argv[1], 0); assert(fif == FIF_EXR); //passes: