I am working with PHP and Imagemagick.
Could someone show me how to use the identify function when you are dealing with a submitted form. For example my form submits the following data in a POST
<input type="file" name="image">
Now I would like to take the passed variable for the image path and obtain the details of the image. I am able to download the image as I mentioned above but I am unable to use the identify command for some reason.
I have tried many different variations of the exec command but I can't get it to work.
exec("identify {$_FILES['image']}", $result);
$identify = $result[0];
print_r($identify);
The above command does not provide any information about the image.
I believe I have to pass the full path for the image in order to obtain the needed information. But how do I do this when using a form???
Thanks.
Could someone show me how to use the identify function when you are dealing with a submitted form. For example my form submits the following data in a POST
<input type="file" name="image">
Now I would like to take the passed variable for the image path and obtain the details of the image. I am able to download the image as I mentioned above but I am unable to use the identify command for some reason.
I have tried many different variations of the exec command but I can't get it to work.
exec("identify {$_FILES['image']}", $result);
$identify = $result[0];
print_r($identify);
The above command does not provide any information about the image.
I believe I have to pass the full path for the image in order to obtain the needed information. But how do I do this when using a form???
Thanks.