

You can use :file to reference the full path to the image you are optimizing and :temp to use a temporary output file if the optimizer requires it. Please make sure the path to the executable and the arguments are correct. For each optimizer you will have to provide the mimetype of the images you want it to optimize and the command you would like to run on the server.
Windows install gifsicle how to#
Here's how to install the optimizers on MacOS (using Homebrew): brew install jpegoptimĪside from using the included optimizers it is also possible to change their default configuration or add some custom optimization tools like MozJPEG or cwebp by enabling the advanced settings. Here's how to install all the optimizers on Ubuntu: sudo apt-get install jpegoptim This will work with most servers and configurations, but if for some reason it doesn't, you can always try to install the optimizers yourself. If an optimizer is not available on your server it will try to use the included version. Carefully enter the following commands in a terminal window for installing Gifine on Ubuntu: sudo apt install ffmpeg graphicsmagick gifsicle luarockscmake. The addon includes precompiled versions of these optimizers for Linux, MacOS and Windows. Sounds pretty technical, huh? Don't worry: ImageOptimizer comes with batteries included! 🔋⚡ It will try to find the executables in the following paths on your server: /usr/local The addon will use the following optimizers if they are available on your system: Run the please optimize command to optimize all your existing image Assets and clear the glide cache. You can view some optimization statistics and choose whether to automatically optimize the original Assets, the Glide images or both under Tools > Optimizer.

Copy the ImageOptimizer folder into site/addons/.
