This python script converts all portrait images in a folder to landscape by adding a blur effect. Nested folders are not supported yet.
Imagemagick: sudo apt install imagemagick
./main.py <folder with images>
The output resides in <folder with images>/../converted/