Laravel 5.2 Intervention Image 500 Server Error

后端 未结 5 1903
青春惊慌失措
青春惊慌失措 2021-01-11 17:46

When I upload big images (4.2 MB) Intervention Image is throwing 500 Error...

private function resizeImage($path, $imgName){
    $sizes = getimagesize($path.         


        
5条回答
  •  一整个雨季
    2021-01-11 18:34

    I had the same issue and increasing upload_max_filesize were not enough. I also increased memory_limit to 256M and restarted the server. Then images were working with Intervention. [Above changes are in php.ini file]

    You may want to change upload_max_filesize and memory_limit according to file capacity you are using.

提交回复
热议问题