Adds two right-click menu entries to the Nemo file manager for batch-converting images to WebP format — directly from any folder, without opening a terminal manually.
- Convert to WebP (1200px) — resizes images to 1200px width, quality 77%
- Convert to WebP (original size) — keeps original dimensions, quality 77%
- Converts JPG, JPEG, PNG (case-insensitive)
- Saves output to a subfolder, originals are never touched
- Shows a size comparison after conversion
- Linux Mint or any Cinnamon desktop with Nemo
webppackage (providescwebp):sudo apt install webp
gnome-terminal:sudo apt install gnome-terminal
git clone https://github.com/AndiWitt/nemo-webp-converter.git
cd nemo-webp-converter
bash install.sh
nemo -q && nemo &The install script copies:
img-webp,img-webp-orig→~/.local/bin/webp_konverter.nemo_action,webp_orig_konverter.nemo_action→~/.local/share/nemo/actions/
- Open any folder containing JPG or PNG images in Nemo
- Right-click on an empty area in the folder (not on a file)
- Choose one of the two new menu entries:
| Menu entry | Output folder | What it does |
|---|---|---|
| Convert images to WebP (1200px) | img_webp_conv/ |
Resizes width to 1200px |
| Convert images to WebP (original size) | webp-orig-px/ |
Keeps original dimensions |
A terminal window opens, shows progress, and displays a size comparison when done.
cd nemo-webp-converter
bash uninstall.sh
nemo -q && nemo &To change the quality or resize width, edit the variables at the top of the scripts
in ~/.local/bin/:
QUALITY=77 # WebP compression quality (0–100)
WIDTH=1200 # Target width in pixels (img-webp only)To use a different terminal emulator, edit the Exec= line in the installed
.nemo_action files in ~/.local/share/nemo/actions/:
Exec=xterm -e 'cd %P && img-webp; bash'Right-click on folder in Nemo
→ Nemo reads the .nemo_action file
→ gnome-terminal opens, changes to the folder path (%P)
→ script loops over all JPG/PNG files
→ cwebp converts each file to WebP
→ output saved to subfolder (originals untouched)
→ terminal shows size comparison and stays open
See CONTRIBUTING.md.