Image Resizing Woking on CLI. but not using PHP.
Posted: 2017-07-14T09:44:35-07:00
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) "
Can anyone please help me with this error?
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);