On macOS it is so convenient to just right-click an image in the Finder and change its size right there.
This is how you can setup a similar behavior in Linux.
You need install imagemagick, I’m using Debian so I installed it like this:
sudo apt install imagemagick
Then create the following script:
nano ~/.local/share/nautilus/scripts/resize_800x600.sh
and put the following code in there:
#!/bin/bash
for file in "$@"; do
convert "$file" -resize 800x600 "${file%.*}_small.${file##*.}"
done
notify-send "Image Resizer" "Resize complete!"
The restart Nautilus with this command:
nautilus -q
That’s it. Now you can very quickly resize images right in the Files.