Code: Select all
./configure --prefix=/opt/imagemagick
This is a portion of my code:
Code: Select all
try
{
try
{
// Try reading image file
o_ImageMagick.read( m_strSourcePath );
}
catch( Magick::WarningCoder &warning )
{
// Magick++ warning.
cerr << "Coder Warning: " << warning.what() << endl;
}
catch( Magick::Warning &warning )
{
// Other Magick++ warning.
cerr << "Warning: " << warning.what() << endl;
}
catch( Magick::ErrorFileOpen &error )
{
// Magick++ file open error
cerr << "Error: " << error.what() << endl;
}
try
{
o_ImageMagick.resize( newSize ); //Program Hangs HERE!
o_ImageMagick.type( TrueColorType );
if( m_dRotate != 0 ) o_ImageMagick.rotate( m_dRotate );
o_ImageMagick.write( m_strOutputPath );
}
catch( Magick::Exception & error)
{
cerr << "Magick++ exception: " << error.what() << endl;
}
}
catch( std::exception &error )
{
// Standard C++ exception
cerr << "STD exception: " << error.what() << endl;
}
catch( ... )
{
// Process other exceptions
}
Code: Select all
g++-4.7 -ggdb -Wall -O2 -o ImageConvert -fopenmp -I/opt/imagemagick/include/ImageMagick -lMagick++ -lMagickCore ... etc
Code: Select all
ImageConvert: magick/cache-view.c:729: GetCacheViewVirtualPixels: Assertion `id < (int) cache_view->number_threads' failed.
Thanks in advance!
Martin!