
Hi Szymon, sorry to see you keep having issues with gil::io.
New info:
- using Visual Studio 2008 SP1 - it only happens in Release mode (often suggests uninitialized variables) - attaching screen shoot of application displaying test.png from test_images (in Debug mode all is fine)
I did try a couple of things but couldn't reproduce your issue. I made sure to use the boost_review code version. I tried debug/release version with VS2010 and VS2008 for 64bit. What's your version of your lib png? Here is the code I tried: #include <boost/gil/gil_all.hpp> #define BOOST_FILESYSTEM_VERSION 2 #include <boost/filesystem/convenience.hpp> #include <boost\algorithm\string.hpp> #define BOOST_GIL_IO_ADD_FS_PATH_SUPPORT #include <boost/gil/extension/io_new/png_all.hpp> using namespace boost; using namespace gil; int main() { rgba8_image_t img; read_image( "C:\\gil_contribution\\test_images\\png\\wikipedia\\test.png", img, png_tag() ); write_view( "c:\\out.png", view( img ), png_tag() ); return 0; } Regards, Christian