MagickReadImage Returns 0 and Bool (false) using var_dump

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
amoghadam

MagickReadImage Returns 0 and Bool (false) using var_dump

Post by amoghadam » 2008-08-12T10:26:35-07:00

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.
Last edited by amoghadam on 2008-08-12T11:06:17-07:00, edited 1 time in total.

amoghadam

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

Post by amoghadam » 2008-08-12T10:45:23-07:00

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

Post Reply