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) "