I just upgraded from ImageMagick 6.7.1 to 6.7.9. I have some code that was reading images using Magick++ and noticed that some of my unit tests were failing because certain TIFF files didn't load anymore. These particular TIFF files are valid, but generated warnings when loaded. The "convert" tool has no problem converting them (displaying the warning), but the Magick++ library doesn't load them any more.
The loading code that I'm using (which worked in 2.7.1) is trivial:
Code: Select all
try
{
_image->read( filePtr );
}
catch( Magick::Warning &warning )
{
// ignore warnings
}
...
Code: Select all
replaceImage( image );
throwException( exceptionInfo );
if ( image )
throwException( image->exception );
(void) DestroyExceptionInfo( &exceptionInfo );
...
Code: Select all
if ( image )
throwException( image->exception );
throwException( exceptionInfo );
(void) DestroyExceptionInfo( &exceptionInfo );
replaceImage( image );
Is this new behavior correct? If so, is there some way of turning off exceptions for warnings? I scanned through the code but did not see anything obvious (at least at the Magick++ level).
Thanks!
-- Dan