# verysimpleslideshow

# Start

Python script for creating slideshows from JPG photos.
The application allows you to create videos from photos, both in portrait and landscape orientation. It was created out of the author's personal needs. With the aim, to facilitate the creation of slideshows for Facebook. The author's intention was not to create an application for everyone, writing this script, he mainly focused on his own needs and capabilities.

The script works with images with a size of 1080 pixels for the longest side. If the image is larger, it will then be scaled.
For a video with a vertical orientation, horizontal images, will be added in a pair, one below the other. For an odd image, it is intended to place the photo in the middle of the frame. For horizontal orientation of the film, vice versa.

The program works with photographs with an aspect ratio of 3:2 and 4:3. Which is quite enough for the author, the extension for widescreen formats, is not provided. The program recognizes the photo format itself - although it can unexpectedly reject this and that. For image processing, the script uses the PILLOW library. Meanwhile, to encode the video, the 'ffmpeg' command. In the case of Fedora, which the author uses. The package used is 'ffmpeg' from RPM Fusion. The arguments from this version of the command, may not be compatible with the 'ffmpeg-free' version from the Fedora Core repository, which is something to keep in mind. The codec used is x264 (instead of openh264 from FC). So if you are using 'ffmpeg-free' and would like to use this script, I can recommend you this page, which contains information about the package version change: https://rpmfusion.org/Howto/Multimedia
The script was recently, adapted to work in Debian/Ubuntu distributions. It was tested in Lubuntu 22.04 with the standard version of 'ffmpeg'. In the case of Okienek, the tests were not successful.


## Installation and uninstallation

```
	sudo make install
	sudo make uninstall
```

## Usage

Use the script installed in the file system, in the directory with photos, with the command:

```
'verysimpleslideshow.py -H' or 'verysimpleslideshow.py' - create horizontal movie
'verysimpleslideshow.py -V' - create a vertical movie
'verysimpleslideshow.py -h' - display help and version number.
```

In Fedora and OpenSUSE distributions, you can use the link:

'vsss'


## File extensions written with a capital letter

The script only works with files with extensions written in lowercase letters
 
rename JPG jpg *.JPG
