Open timeholes opened 5 years ago
I have the same issue
I fixed this by changing the Image Driver from imagick to gd in: config/image.php
@dariopetraroia
Did you just changed the config and it worked?
I did edit image.php, then
sudo apt-get install php7.2-gd
sudo service nginx restart
but the problem is still there.
I had the same problem. It exploring I found that laravel sandbox dosen't have Imagemagick. Thus, installing Imagemagick solved the problem. Use sudo apt-get install imagemagick php-imagick and then restart your laravel dev server.
After deploying my project to nginx server, I am too experiencing same problem.
@timeholes first i tried to install imagick but this didn't solve the problem then i changed the image.php to gd library and it was working.
In my case, after migrating from laravel dev server to nginx, I experienced the same problem. To solve this, I installed imagemagick and php-imagick. In addition, I also added extension=imagick.so in php.ini. After this I rebooted my server. Now images are getting uploaded and also getting displayed on listing.
@niteshn99 Sorry do you experience upload size limit, the issue i have is that i can't upload images over 1.9MB, do you know what could be the cause, Thanks
I tried the solution of changing from imagemagic to gd. One problem of upload solved but the image is not showing up. May be something to do with image extension defining ....
Also, noticed the image file name is changing to photo_1.jpg, photo_2.jpg etc... after saving the listing and the image looks garbled too...
@EmmaTheGr8est Sorry but I haven't used any listing image of that much size.
Unable to load images for any listings, this is the error message:
I added writing permissions for user 'www-data' to storage folder on my server, but that didn't help. Any idea what may cause this error?