Page 1 of 1

magickwand remote operations

Posted: 2009-11-04T14:38:59-07:00
by sonny
Hi all, I am trying to crop images from a remote server, but get the error below;

Fatal error: magickreadimage(): C API cannot read the format "http://www.remotehost.com/jobs/job112/bg2.JPG" (reason: no data returned `http:/www. remotehost.com/jobs/job112/bg2.JPG') [on C source line 217] in /var/www/html/projects/sp/myUsefulFunctions.class.php on line 1618

Any ideas what could be restricting access, i know the code is good because it works on local files.

Re: magickwand remote operations

Posted: 2009-11-04T18:48:33-07:00
by magick
MagickWand for PHP has security restrictions that prevent images from being read with the HTTP protocol. Now that we have configurable security policies in ImageMagick., there is no longer a need for hard-coded restrictions in MagickWand for PHP. In the mean-time, try iMagick. Perhaps that PHP API permits the HTTP protocol.