Picture above 3000px does not load in Wideimage

Asked

Viewed 153 times

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!

  • 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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.