downsize photo ubuntu

C++
sudo apt install nautilus-image-converter
Source

Also in C++: