> I was wondering if you any advice as to why the imagick function > imagick_readimage can not read a url on my php installation. > > Problem: I am trying to get imagick to load an image from a URL. I can > read from a file on the a file system no problem. > > $url = "http://static.php.net/www.php.net/images/php_snow.gif"; > $handle = imagick_readimage($url) ; // THIS DOES NOT WORK > > $url = "/tmp/foo.gif"; > $handle = imagick_readimage($file) ; // THIS DOES WORK > > also I can get GD to read from a URL .eg. > $url = "http://static.php.net/www.php.net/images/php_snow.gif"; > $src_img=ImageCreateFromGIF($url); > > > The problem started after I was forced to change servers due to a disk > crash. I am using the same versions of the software to build the > php/mysql/apache. > Is there any configuration /installation setting that I have missed that > would stop me from loading the image via the URL ??? > I have tried using GD, but found the image scaling quality to be > substandard to imagick. I would like to use image magic if possible.
I have made this quick test, to experiment IM loading from url: display http://static.php.net/www.php.net/images/php_snow.gif and found a strange behavior, the image is displayed, but just 3 seconds, then display stops itself. But loading in local don't bring this behavior.. Probably no relation, but pecl-imagick is still experimental, perhaps that's just it ? Well, if you don't find another solution, what you do can (rather than writing a tmp img file) is to load all the data image in a php var, and then throw it to pecl-imagick with the imagick_blob2image() function... This solution works, I'm using it to link php-gtk with php-imagick without tmp img files. Moreover as you can see below, this is shown in the exemples given in the imagick package: http://grincheux.codelutin.org/~monnier/doc/imagick/blob2image.php > Has anyone had similar problems? Me, my problem with pecl-imagick is that not all the ImageMagick fonctions I am used to are available. And some of the non-available fonctions are very important like mask, disolve, some others not very important but rather very useful like round edge rectangles, bezier curves, etc... Well, there is still a lot of work to do to bring pcel-imagick to the same high level than Perl-imageMagick ... :,( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php