MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
-
mkhalid03
- Posts: 2
- Joined: 2017-07-14T09:33:34-07:00
- Authentication code: 1151
Post
by mkhalid03 » 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) "
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?
-
Bonzo
- Posts: 2971
- Joined: 2006-05-20T08:08:19-07:00
- Location: Cambridge, England
Post
by Bonzo » 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.
-
mkhalid03
- Posts: 2
- Joined: 2017-07-14T09:33:34-07:00
- Authentication code: 1151
Post
by mkhalid03 » 2017-07-19T03:24:10-07:00
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