Skip to content

F4bsi/photobooth

 
 

Repository files navigation

photobooth+

A Photobooth webinterface for Raspberry Pi and Windows, based on photobooth by Andre Rinas.

I've extended the original photobooth with a print feature, so you can print newly taken pictures or any picture in the gallery. Photobooth uses the command line to print the picture. The command can be modified in config.inc.php.

Modifications and new features:

  • Pictures can be printed directly after they were taken or later from the gallery
  • Moved a lot of parameters and settings into the config.inc.php
  • Changed the data.txt from a line seperated database into a JSON structure
  • The images are now processed with GD/ImageMagick rather than avconv
  • Now works on Windows and Linux
  • Added digiCamControl by Duka Istvan to control the camera and to take pictures under Windows
  • Photobooth caches all generated QR-Codes, Thumbnails and Prints
  • All directories are not automatically created if they doesn't exist
  • The gallery can now be ordered ascending oder descending by picture age (see $config['gallery']['newest_first'] in config.inc.php)

Prerequisites

  • gphoto2 installed, if used on a Raspberry for DSLR control
  • digiCamControl, if used unter Windows for DSLR control
  • Apache

Installation

On Raspbian:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git apache2 php php-gd gphoto2 libav-tools
cd /var/www/
sudo rm -r html/
sudo git clone https://github.com/andreknieriem/photobooth html
mkdir -p /var/www/html/thumbs
mkdir -p /var/www/html/images
mkdir -p /var/www/html/print
mkdir -p /var/www/html/qrcodes
sudo chown -R pi: /var/www/
sudo chmod -R 777 /var/www

Give sudo rights to the webserver user (www-data)

sudo nano /etc/sudoers and add the following line to the file: www-data ALL=(ALL) NOPASSWD: ALL

Ensure that the camera trigger works:

sudo rm /usr/share/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service
sudo rm /usr/share/gvfs/mounts/gphoto2.mount
sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor
sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

Open the IP address of your raspberry pi in a browser

  • Change the styling to your needs

On Windows - Download digiCamControl and extract the archive into digicamcontrol in the photobooth root, e.g. D:\xampp\htdocs\photobooth\digicamcontrol

Change Labels

There are two label files in the lang folder, one for de and one for en. The de lang-file is included at the bottom of the index.php. If you want the english labels, just change it to en.js. If you want to change the labels just change the de.js or en.js

Changelog

  • 1.5.2: Bugfixing QR-Code from gallery and live-preview position. Merged pull #45
  • 1.5.1: Bugfixing
  • 1.5.0: Added Options page under /admin. Bugfix for homebtn. Added option for device webcam preview on countdown
  • 1.4.0: Merged several pull requests
  • 1.3.2: Bugfix for QR Code on result page
  • 1.3.1: Merged pull-request #6,#15 and #16
  • 1.3.0: Option for QR and Print Butons, code rework, gulp-sass feature enabled
  • 1.2.0: Printing feature, code rework, bugfixes
  • 1.1.1: Bugix - QR not working on touch devices
  • 1.1.0: Added QR Code to Gallery
  • 1.0.0: Initial Release

Tutorial

Raspberry Pi Weddingphotobooth (german)

Thanks to

About

A photobooth Web-Application for raspberry pi with gphoto2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 77.7%
  • CSS 11.3%
  • JavaScript 9.7%
  • Shell 1.1%
  • Other 0.2%