Boost logo

Boost :

Subject: [boost] [GIL] trouble loading image files
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2009-01-10 19:50:17


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<rgb8_image_t>( "file.jpg", m_image1 );

rgb8_image_t image2;
png_read_and_convert_image<rgb8_image_t>( "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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk