Nautilus Scripts for Batch Image Processing Operations

Nautilus scripts are one of the biggest strengths of the Gnome desktop environment and the nautilus file manager. With Nautilus scripts, we can perform complex file manager and file specific operation with a few clicks. One such example is editing of images.
There are many applications available for editing images in Linux but a nautilus script has its own advantages. To know more about Nautilus scripts, visit this post on Nautilus Scripts. These are the five nautilus scripts you can use for fast image editing:

Rotate all images recursively in a directory:

This script rotates all images recursively in a directory. This rotates the images in the directory and any image in the subdirectory as well. The only disadvantage is that it rotates in one direction only.

Script Link

Depends on: jhead

Resize images:

This script is used to resize and compress images in a directory. This is a very handy tool for bloggers and for uploading images to the web.

Script Link

Depends on:  zenity, imagemagick

Rotate-Mirror images:

This script rotates images by 90 °, 180 °, 270 °, vertical mirror and horizontal mirror. Also, this script makes the changes directly on the image being modified and deletes all earlier exif data. It cannot edit files in a directory but can edit multiple file selections.

Script Link

Depends on: zenity, imagemagick

Convert to jpeg:

With this script, we can convert all selected files to .jpeg images. The quality of the image is set to 75; you can set it to a higher value for a better quality. The maximum value is 100.

Script Link

Depends on: convert, sed


This script converts images from svg to png format. This script like the rotate images script cannot convert files in a directory with directory selection but works on multiple files.

Script Link

Depends on: zenity, inkscape

Save the script-text as a file into the nautilus directory and make it executable. These scripts will fail to work without the respective dependencies. The dependencies can be installed from the package manager or from the apt-get command line utility. For details on using the script, see this earlier post on nautilus scripts.

Published by

Chinmoy Kanjilal

Chinmoy Kanjilal is a FOSS enthusiast and evangelist. He is passionate about Android. Security exploits turn him on and he loves to tinker with computer networks. You can connect with him on Twitter @ckandroid.