pepe e6f97b4f77 Reduce window size for small display support
Pictures will show wrong resize behavior at the beginning of a slide show, when the window size exceeds the display size. As the Window will be shown in full screen anyway, an initial window size of 1x1px should support all display sizes.
2021-03-02 19:53:33 +01:00
2019-01-24 21:14:42 +01:00
2020-01-26 22:30:04 +01:00
2019-01-21 20:58:05 +01:00
2019-01-31 09:08:37 +01:00
2019-01-21 20:53:46 +01:00
2021-03-02 18:36:26 +01:00

slide

Simple, lightweight slideshow selecting random images from specified directory. This slideshow is designed to compile and run also on a Raspberry Pi, for example to turn it into a digital picture frame.

Tested versions:

  • Raspberry Pi 3 running Raspbian Stretch.
  • Raspberry Pi 3 running Raspbian Buster.

Screen background is filled with a scaled version of the image to prevent pure black background.

screenshot

This project is maintained by myself during my spare time. If you like and use it, consider buying me a coffee.

Usage

slide [-t rotation_seconds] [-o background_opacity(0..255)] [-b blur_radius] -p image_folder -r
  • image_folder: where to search for images (.jpg files)
  • -r for recursive traversal of image_folder
  • -s for shuffle instead of random image rotation
  • -S for sorted rotation (files ordered by name, first images then subfolders)
  • rotation_seconds(default=30): time until next random image is chosen from the given folder
  • background_opacity(default=150): opacity of the background filling image between 0 (black background) and 255
  • blur_radius(default=20): blur radius of the background filling image

Dependencies

  • libexif
  • qt5
sudo apt install libexif12 qt5-default

Build

dev libs needed to build slide on from source:

sudo apt install libexif-dev
mkdir -p make
cd make
qmake ../src/slide.pro
make
sudo make install

macOS

Prerequisite: brew

brew install qt5
brew install libexif
mkdir -p build
cd build
qmake ../src/slide.pro
make

Article on using slides

This article has more helpful ways that you could use this repo as a picture frame
https://opensource.com/article/19/2/wifi-picture-frame-raspberry-pi

Removing black border

if you find that you have a black border around your screen you can remove it by disabling overscan. This is done by editing /boot/config.txt and uncommenting disable_overscan=1 
Description
No description provided
Readme MIT 2 MiB
Languages
C++ 95.1%
Shell 2.7%
QMake 1.4%
Makefile 0.7%
C 0.1%