Page 1 of 1

Image Resizing Woking on CLI. but not using PHP.

Posted: 2017-07-14T09:44:35-07:00
by mkhalid03
Hi Team.

I am trying to use the imagemagick command using PHP exec() function. Its working correctly for (1024*1024) resolution images but if i am trying to resize (2126*2126) image its always throwing error "convert: Insufficient memory (case 4) "

Code: Select all

exec("convert -monitor -define registry:temporary-path=/tmp -limit thread 1 -limit area 0 [SOURCE_IMAGE] -resize 1024x1024! [DESTINATION_IMAGE] 2>&1", $output);
Can anyone please help me with this error?

Re: Image Resizing Woking on CLI. but not using PHP.

Posted: 2017-07-14T10:31:26-07:00
by Bonzo
What happens if you take this out? registry:temporary-path=/tmp

I would also start with the basics and build on it until it fails.

Re: Image Resizing Woking on CLI. but not using PHP.

Posted: 2017-07-19T03:24:10-07:00
by mkhalid03
Bonzo wrote: 2017-07-14T10:31:26-07:00 What happens if you take this out? registry:temporary-path=/tmp

I would also start with the basics and build on it until it fails.
Still same even after removing the registry:temporary-path=/tmp