have you checked phpinfo() to see if your settings are being recognised? Reloaded server etc..? Oh...and you do have enough ram too?
Jun 19, 2019
10
Level 18
intervention image not resizing image greater than 15mb
Hi All,
I'm using Intervention\Image\Facades\Image to resize image. It works fine when uploading images upto 12Mb. but it is returning 500 while uploading image greater than 20Mb.
Here is my php.ini settings
max_execution_time = 1000 max_input_time = 1000 memory_limit = 1000M post_max_size = 1000M upload_max_filesize = 1000M
Level 18
I've combined both of your( @nash , @deansatch ) suggestion and rewrite my code like below and it works perfect.
$orgFilename = "img-".md5(rand(9999,999999999)).'.'.$request->original_image->getClientOriginalExtension();
$request->original_image->storePubliclyAs('uploads',$orgFilename);
$destinationPath = public_path('storage/uploads/');
ini_set('memory_limit', '1000M');
$img = Image::make($img->getRealPath());
$img->resize('500', '500')
->save($destinationPath.'thumbnail-'.$orgFilename)->destroy();
Thank you @nash and @deansatch for your help.
Please or to participate in this conversation.