Skip to content

drucko/pipresentationmanager

 
 

Repository files navigation

pipresentationmanager

PHP GUI to prepare a PiPresents compatible slideshow

General configuration

The configuration file is located in the root of the installation and called config.php See the commented example for details. A call to dirname(FILE) returns the absolute path of the directory the config.php is located in without trailing slash.

Text Configuration

Backgrounds can be supplied with an optional configuration file defining a text field to put an overlay text on the image. If this file is available and has a "text" section, the Web-GUI will display a text area field to modify the text displayed.

The configuration file has to be located next to the image file, sharing the same filename but with extension .json instead of .jpg

The configuration file is in JSON format and looks like this. (see example in testenvironment/data)

{
  "text": {
    "font": "Helvetica",
    "size": "30",
    "color": "white",
    "bold": true,
    "italic": true,
    "underline": false,
    "overstrike": true,
    "posX": "50",
    "posY": "50"
  }
}

font: Font Family of the Text. Depending on the installed fonts. e.g. Arial, Helvetica, Times, Courier To find out which font families are installed, run the tkfonts.sh command from the scripts subdirectory. Please note that X has to be running and you have to run the command as user pi.

size: Font size in pixels

color: Name of color or RGB code: e.g.: red, green, white, #33FF33

bold, italic, underline, overstrike: true or false (don't set in quotes!)

About

PHP GUI to prepare a PiPresents compatible slideshow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 56.2%
  • JavaScript 37.4%
  • CSS 6.3%
  • Shell 0.1%