wand.c example: execution error

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
erotavlas_turbo

wand.c example: execution error

Post by erotavlas_turbo »

Hi,

I'm trying wand.c code (available on image magick website). It compile well, but if i try to execute it i get the following error

Code: Select all

./wand text.png text.png 
wand.c main 39 no decode delegate for this image format `text.png' @ constitute.c/ReadImage/530
the same error appear if i change the input image from text.png to text.jpg and other format.
The same code works well under window...
I think that i make a mistake when i pass input parameters

Thank
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: wand.c example: execution error

Post by magick »

You need to add PNG and JPEG support to your instance of ImageMagick. Type
  • identify -list format
What you want is this:
  • JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
    JPG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
    PNG* PNG rw- Portable Network Graphics (libpng 1.2.39)
Notice the mode is 'rw' for read and write support.
erotavlas_turbo

Re: wand.c example: execution error

Post by erotavlas_turbo »

I solved the problem. I have installed image magick from source code and i make a mistake, i think.

After i have installed it from synaptic ubuntu, and the code works well.

Thank
Post Reply