DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2193 Version: 1.1.9 The exiv2 utility puts jpeg comments in the first section of the jpeg file: exiv2 -c foo test.jpg hexdump test.jpg | head -n 1 00000000 ff d8 ff fe 00 06 66 6f 6f 00 ff e1 3a 3b 45 78 This file is no longer accepted by fltk jpeg check in fl_images_core.cxx Other utilities like jpeginfo still accept the file as valid. It also seems correct according to http://en.wikipedia.org/wiki/Jpeg The patch below fixes the problem: --- fl_images_core.cxx.orig 2009-04-21 11:39:56 +0200 +++ fl_images_core.cxx 2009-04-21 11:40:07 +0200 @@ -89,7 +89,7 @@ #ifdef HAVE_LIBJPEG if (memcmp(header, "\377\330\377", 3) == 0 && // Start-of-Image - header[3] >= 0xc0 && header[3] <= 0xef) + header[3] >= 0xc0 && header[3] <= 0xfe) // APPn for JPEG file return new Fl_JPEG_Image(name); #endif // HAVE_LIBJPEG Link: http://www.fltk.org/str.php?L2193 Version: 1.1.9 _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
