This week I noticed that I can do that with scripts. Those can be in any given language, the selected files will be passed as command line arguments.
To add any script to the right click menu, you just need to place them in ~/.local/share/nautilus/scripts/ directory. They will show up in the right click menu for scripts.
If w > h then it is a landscape photo; if not, it is a portrait photo, allowing for conditional resizing based on image orientation.
The script utilizes the Python Imaging Library to open and resize images while providing a seamless and efficient way to process multiple files.
Collection
[
|
...
]