Page 1 of 1

readImageFile() not working

Posted: 2013-08-13T09:19:53-07:00
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

Re: readImageFile() not working

Posted: 2013-08-13T10:14:17-07:00
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.

Re: readImageFile() not working

Posted: 2013-08-13T10:16:53-07:00
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');
?>

Re: readImageFile() not working

Posted: 2013-08-13T13:06:16-07:00
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!