Ping image out Magick::WarningCoder
Posted: 2008-11-05T01:46:00-07:00
I use magick c + + development php extension, to deal with the realization of tiff.
Output error:
terminate called after throwing an instance of 'Magick::WarningCoder' what(): ImageMagick: 001.TIF: Line length mismatch at line 0 of strip 0 (got 4410, expected 2704). `Fax4Decode'
System: suse10 sp1
Imagemagick:ImageMagick-6.4.4
libtiff:tiff-3.8.2
php:php 5.1.2
gcc:gcc-4.1.2_20070115-0.11
About 'Magick::WarningCoder' Description Warnings issued by some coders.
Please help me, Thanks
Code: Select all
try {
Magick::Image image;
try {
image.read("001.TIF");
}
catch( Magick::WarningCoder &warning )
{
cerr << “Coder Warning: “ << warning.what() << endl;
}
catch( Magick::Warning &warning )
{
cerr << “Warning: “ << warning.what() << endl;
}
catch( Magick::ErrorFileOpen &error )
{
cerr << “Error: “ << error.what() << endl;
continue; // Try next image.
}
try {
image.rotate(90);
image.write(“outfile”);
}
catch ( MagickExeption & error)
{
cerr << “Caught Magick++ exception: “ << error.what() << endl;
}
}
catch( std::exception &error )
{
err << “Caught C++ STD exception: “ << error.what() << endl;
}
catch( ... )
{
}
terminate called after throwing an instance of 'Magick::WarningCoder' what(): ImageMagick: 001.TIF: Line length mismatch at line 0 of strip 0 (got 4410, expected 2704). `Fax4Decode'
System: suse10 sp1
Imagemagick:ImageMagick-6.4.4
libtiff:tiff-3.8.2
php:php 5.1.2
gcc:gcc-4.1.2_20070115-0.11
About 'Magick::WarningCoder' Description Warnings issued by some coders.
Please help me, Thanks