reading .pict file fails

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
hakiim35
Posts: 19
Joined: 2010-02-18T07:04:01-07:00
Authentication code: 8675308

reading .pict file fails

Post 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.
Post Reply