ConvertImage.sh is a Bash script that integrates with the Nautilus file manager in Linux, providing a convenient right-click option to convert image files to different formats. Utilizing zenity for a graphical interface and convert from ImageMagick, it allows users to easily convert images to JPEG, PNG, or WEBP formats.
- Linux with Nautilus file manager
- Zenity
- ImageMagick
- Download
ConvertImage.shto your desired directory. - Make the script executable:
chmod +x ConvertImage.sh. - Place the script in
~/.local/share/nautilus/scripts/to integrate with Nautilus.
- Right-click on an image file in Nautilus.
- Navigate to 'Scripts' > 'ConvertImage.sh'.
- Select the desired output format from the Zenity dialog.
- Select the desired output size with the slider. (100% is the original size)
- The script will convert the selected image to the chosen format and size.
The script works as follows:
- It presents a Zenity list dialog to choose the output image format and size.
- If no format is selected, the script exits.
- The selected image paths are processed with the
convertcommand from ImageMagick to change their format.
- Ensure that all dependencies are installed for the script to work correctly.
- The script only processes files selected when it is executed.
Feel free to contribute to this script by submitting pull requests or opening issues for any bugs or feature requests.

