0
Good afternoon,
I have a function in which it is responsible for taking the image and resizing it, but images with 3000x2000 are not loaded by Wideimage
WideImage::load($ampliada)
->resize($largura, $altura, 'outside', 'center')
->crop('center', 'center', $largura, $altura)
->saveToFile($thumb, $qualidade);
I tested with other smaller images and works perfectly, there is some restriction in Wideimage where it does not allow to load images above a pixel amount?
I also tried with Laravel’s Intervention Image
Image::make($ampliada)->resize($largura, $altura)->save($ampliada, 90);
Sometimes it works and sometimes I get the Error 500, someone knows why?
Thank you.
You have to analyze PHP settings!
– novic
Your question has already been answered at this link: https://stackoverflow.com/questions/28208439/php-resize-function-not-working-when-file-greater-than-2-mb
– Adriano de Azevedo