
11 Jan
2009
11 Jan
'09
1:57 a.m.
Kenny Riddile wrote:
This is my first time using GIL and I'm having some difficulty loading jpeg and png files. Here's some code:
rgb8_image_t image1; jpeg_read_and_convert_image
( "file.jpg", m_image1 ); rgb8_image_t image2; png_read_and_convert_image
( "file.jpg", m_image2 ); Attempting to load the jpeg causes a crash at jpeg_read_header(&_cinfo,TRUE); in jpeg_io_private.hpp. Attempting to load the png causes a similar crash at png_read_info(_png_ptr, _info_ptr); in png_io_private.hpp. I'm using the libjpeg and libpng builds from these sites:
http://gnuwin32.sourceforge.net/packages/jpeg.htm http://gnuwin32.sourceforge.net/packages/libpng.htm
That second file name should be "file.png", not "file.jpg"...cut and paste error :)