I have the following code:
$image = PhpThumbFactory::create($image_path);
$image->adaptiveResize(200, 200);
$image->save($image_path);
When I try to resize a JPG with a size of 580KB and dimensions 2560 X 1600, I get the following error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 10240 bytes)...
Tried it with a smaller image (both in size and dimensions) and there's no problem. The image is less than 8MB (8388608 bytes) - what's going on and how do I fix it?
Thanks!