here my code:
#include <Magick++.h>
#include <string>
#include <iostream>
using namespace std;
using namespace Magick;
int main( int /*argc*/, char ** argv)
{
// Initialize ImageMagick install location for Windows
InitializeMagick(*argv);
try {
Image image("granite.png");
}
catch( exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
return 1;
}
return 0;
}
And i have this eeror:
Caught exception: button.exe: NoDecodeDelegateForThisImageFormat
Why it is happening?
Please, help me.
NoDecodeDelegateForThisImageFormat
Re: NoDecodeDelegateForThisImageFormat
Type
- convert granite.png granite.miff
- identify -list format
identify -list configure
Re: NoDecodeDelegateForThisImageFormat
after
convert granite.png granite.miff
i am not ger any error and file granite.miff was created.
and in identify -list format
The PNG was listed as a supported format.
convert granite.png granite.miff
i am not ger any error and file granite.miff was created.
and in identify -list format
The PNG was listed as a supported format.
Re: NoDecodeDelegateForThisImageFormat
magick thank you.
All is work.
But i have other question:
when i wright:
image.display();
i have this error: UnableToOpenXServer 'No such file or directory'
As to me to get rid of it?
All is work.
But i have other question:
when i wright:
image.display();
i have this error: UnableToOpenXServer 'No such file or directory'
As to me to get rid of it?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: NoDecodeDelegateForThisImageFormat
You need a DISPLAY environment variable pointing to a running X windows display.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/