Search found 8 matches

by sugrob
2017-03-25T03:56:51-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

For this time i find good solution $image = new Imagick(); $image->readImageFile($handle); $image = $image->coalesceImages(); foreach ($image as $frame) { $frame->cropImage($width, $height, $x, $y); $frame->setImagePage(0, 0, 0, 0); } $image = $image->coalesceImages(); foreach ($image as $frame) { $...
by sugrob
2017-03-25T03:30:56-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

snibgo - link to the image in first message. (stalker-zona-tvorchestva.ru/temp/579.gif) I need 2 images from original - 200x200 and 100x100 where first i made crop and then resize - alwase. alwase i have differense images with differense pixels per frame and frames. I try command in PHP system("...
by sugrob
2017-03-25T00:51:44-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

i made command line

Code: Select all

convert /var/www/579.gif -coalesce  -resize 200x200  /var/www//1.gif
40 seconds.
php IM work like command line

I think the operation "writeondisk" - slow, but why? files copy very fast.
Now i try to find how many memory used IM.
by sugrob
2017-03-25T00:22:26-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

snibgo - good question. I am not good linux user and dont know how look how much memory is available to ImageMagick under Magick under PHP.
you give me direction for seach answer. thanks.
by sugrob
2017-03-24T14:44:14-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

snibgo "Where did you run the "top" command?" - in centos command line - i have many memory free. "You are running ImageMagick under IMagick under PHP" - under PHP 5.3.3 i set it at top of first message I understand. i try to make command at command line, but it takes s...
by sugrob
2017-03-24T13:01:57-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

IM command
$image->writeImages($destination_file, true);
is write on disk. it is slow operation? but 50 seconds? I copy this file by half a second.
by sugrob
2017-03-24T13:00:21-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Re: Very slow "writeImages"

Fragment of command "top":
Mem: 1922100k total, 1433476k used, 488624k free, 185996k buffers
Swap: 502780k total, 15496k used, 487284k free, 718312k cached

and on disk i have more 20GB free.

If i out of memory how can i see it?
by sugrob
2017-03-24T12:34:21-07:00
Forum: IMagick
Topic: Very slow "writeImages"
Replies: 12
Views: 27368

Very slow "writeImages"

Hey. I read many forums and did not find the answer. I use: PHP Version 5.3.3 imagick module version 3.1.2 imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator ImageMagick version ImageMagick 6.7.2-7 2016-06-16 Q16 Everything works on a virtual server on "centos" - ther...