Page 1 of 1

MagickReadImage Returns 0 and Bool (false) using var_dump

Posted: 2008-08-12T10:26:35-07:00
by amoghadam
I have ImageMagick installed on my linux box and I also have Magickwand compiled with my PHP because I see the option inside php_info

I get a Resource id # (which tells me that it was created okay) and
I also see a /tmp/filename when I echo out the $_FILE["userfile"]["tmp_name"].
what I dont get is the MagickReadImage. I have assigned it to a Variable and when I echo it,
I get 0. So when I use MagickGetImageHeight and MagickGetImageWidth I get nothing in return.

I really need anyone's help on this issue.
Thank you for giving me your time.

Re: MagickReadImage Returns 0 and Bool (false) using var_dump

Posted: 2008-08-12T10:45:23-07:00
by amoghadam
I just wanted to add in that I have confirmed that magickwand is enabled when I echo out php_info and not in php.ini.

Thanks