Optimise images for web
When do I use it?
guetzli to compress your images to a fraction of their original size without visual quality loss. This is due to a really interesting human-visual-comparison algorithm developed by google. You're not convinced? Download the before (8.62 MB) and after (1.94 MB) photos from the above screenshot and compare them in as much detail as you want!
Guetzli conversion is slow! Because of this, there are only a handful of web-related cases where guitzli is valuable:
- You are serving an image with limited bandwith (e.g., self-hosting).
- You are serving an image many times (e.g., a landing page).
- You are adamant about having the absolute smallest file size.
- Any combination of the above.
Here you can find some more information on using guetzli from the people at google.
How to install
Download the latest version for your system from Releases. Only recent versions of windows are supported at this time. I'll try to support linux and osx as soon as possible!
Install directory will be
%LOCALAPPDATA%\guitzli. From there you can create a desktop shortcut should you so desire.
# Optional cd to downloads cd ~/Downloads wget -O guitzli.deb "https://github.com/vankesteren/guitzli/releases/download/V0.3.0/guitzli_linux_64.deb" sudo dpkg -i guitzli.deb
How to build from source
Install Node.js 6.10.2.
On linux, also install
Clone, install, and start.
git clone https://github.com/vankesteren/guitzli.git cd guitzli npm install npm start
How to package and create binaries
npm run make for to generate 32-bit and 64 bit binaries for your current architecture. You can also build only one architecture:
npm run make32 or
npm run make64.
sooner: Proper packaging. Mac
& Linux support.
later: Multi-image support. (batch processing & multi-core)