Page 1 of 1

wand.c example: execution error

Posted: 2009-12-04T04:22:01-07:00
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

Re: wand.c example: execution error

Posted: 2009-12-04T09:35:00-07:00
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.

Re: wand.c example: execution error

Posted: 2009-12-09T01:18:24-07:00
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