Sunday, March 5, 2017

Can not generate thumbnails on large files with intervention/image?

Locally I was able to make a thumbnail with this code, but on shared hosting it was not able to create thumbnails. The only solution I've been able to make, is to comment out the code. Something weird is happening, propably some memory limit exceeding or something. How to solve this? I'v been trying to wrap a try catch around this but no errors are logged. Only a blank http 500 page. Even a normal upload with a fairly big image (1 MB) is slow on my shared hosting.

      Image::make($origFilePath)->fit(FileUpload::MINWIDTH, FileUpload::MINHEIGHT, function ($constraint) {
            $constraint->upsize();
        })->save($thumbPath);



via marko

Advertisement