readImageFile() not working

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
payter
Posts: 3
Joined: 2013-08-13T09:15:11-07:00
Authentication code: 6789

readImageFile() not working

Post by payter »

Hello, when i want to use readImageFile() method with correct resource, it will fails, and lose connection, with readImage() and path to the file it is work fine (but it must be absolute path), but i need resource version, because i use it with Imagine PHP class ... i have PHP 5.4.16 and php_imagick_ts.dll extension
payter
Posts: 3
Joined: 2013-08-13T09:15:11-07:00
Authentication code: 6789

Re: readImageFile() not working

Post by payter »

update: everytime apache is crashing and said

[mpm_winnt:notice] [pid 7704:tid 260] AH00428: Parent: child process 1536 exited with status 3221226519 -- Restarting.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: readImageFile() not working

Post by Bonzo »

Your full code would have been helpful.

What does this example from the php Imagick website do?

Code: Select all

<?php
 $handle = fopen('http://example.com/foo.jpg', 'rb');
$img = new Imagick();
$img->readImageFile($handle);
$img->resizeImage(128, 128, 0, 0);
$img->writeImage('images/foo.jpg');
?>
payter
Posts: 3
Joined: 2013-08-13T09:15:11-07:00
Authentication code: 6789

Re: readImageFile() not working

Post by payter »

i have fixed that, i have tried many combinations, even PHP 5.5.1, but this is working finaly:

PHP Version 5.4.16
Magick version 6.8.4-0 Q16 32bit
Extension version from here http://valokuva.org/?p=197, direct download here http://valokuva.org/~mikko/imagick-php54-php53.tgz, what is important is extract all DLL files from there to Magick directory!
Post Reply