Closed taliptako closed 8 years ago
Hi,
do you have installed some convert libraries. Like this ?
sudo apt-get install optipng pngquant pngcrush gifsicle jpegoptim
Yes i installed all of them and i'm using optimizeImage instead of optimizeUploadedImageFile. Because i need to optimize all images on my filesystem.
I think that is not really clear.
optimizeImage() is just for one imagefile
but
if you have upload class like this: Symfony\Component\HttpFoundation\File\UploadedFile; than you must use the other method.
This module currently doesn't suppert multifiles or a filepath. But feel free to implent this with a pull request.
I'm using optimizeImage($filepath) like this with only one image filepath and this method should replace image in that filepath with new optimized image isnt it ?
Yes, this image will be replaced.
I'm trying to use this on laravel homestead its not working and i'm not getting any error