Page 1 of 1

reading .pict file fails

Posted: 2011-11-21T10:58:16-07:00
by hakiim35
Hello, I have an application that can read and write a number of image formats using Magick++ API. However, the following piece of code fails to read input.pict which comes with ImageMagick installation (..\PerlMagick\t\input.pict)

Code: Select all

	try {
		QString s = QDir::toNativeSeparators(fileName.toUtf8()); 
		std::string srcFilename = s.toLatin1();
		img.read(srcFilename);
		img.magick("PICT");
	}
	catch(std::exception &error_ )
	{
		QMessageBox::warning( 0, QObject::tr("Pict Read Error!!"), QString(error_.what()) );
	}
I ensured that the file path srcFilename is correct. But the program always falls into the exception..
The error string is this one:

Code: Select all

Magick: NoDecodeDelegateForThisImageFormat "C:\input.pict" @ error/constitute.c/ReadImage/533
I am using ImageMagick 6.6.0-Q16 . My development configration is Windows XP Sp3 -- Visual Studio 2008.