Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] trouble loading image files
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2009-01-10 20:57:01


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<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

That second file name should be "file.png", not "file.jpg"...cut and
paste error :)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net