Skip to content

AndiWitt/nemo-webp-converter

Repository files navigation

nemo-webp-converter

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.

Features

  • 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

Requirements

  • Linux Mint or any Cinnamon desktop with Nemo
  • webp package (provides cwebp):
    sudo apt install webp
  • gnome-terminal:
    sudo apt install gnome-terminal

Installation

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/

Usage

  1. Open any folder containing JPG or PNG images in Nemo
  2. Right-click on an empty area in the folder (not on a file)
  3. 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.

Uninstallation

cd nemo-webp-converter
bash uninstall.sh
nemo -q && nemo &

Customization

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'

How it works

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

Contributing

See CONTRIBUTING.md.

License

MIT

About

Nemo right-click actions to batch-convert images to WebP (1200px or original size) on Linux Mint

Topics

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages