How to build a Photo Booth (Part 9: Post production)
- Listing out the requirements
- Getting started with Pi and PiCamera
- Building the Booth
- Adding the 12volt Lights / Flash (Optional)
- Writing the app
- Adding a Power button
- Adding a Printer (Optional)
- Photo day!
- Post-production
Post production
The steps below assume that you want to publish your photos to a website of your choice. Depending upon how you want to distribute your photos, you may decide to skip some of the steps below.
Step 0
Fork my github repository?
Adjust image brightness levels (if required)
#TODO (if you prefer, you can also do this via ImageMagic)
(Note to self - this may be easier to write about, rather than Photoshop…etc.)
Install ImageMagic
#TODOCreate thumbnails (animated gifs) with ImageMagic
#script1.sh
prev_filename_no_inc=""
for jpg_file in ./full-res-images/*.jpg;
do
filename_no_ext="${jpg_file%.*}" # Example: 2017-04-15_15-07-08_1
filename_no_inc="${filename_no_ext::${#filename_no_ext}-2}" # Example: 2017-04-15_15-07-08
if [ "${prev_filename_no_inc}" != "${filename_no_inc}" ]; then
echo "Processing: "${filename_no_inc}
#Compression with ImageMagick
GM convert -quality 50% -delay 100 -resize 200x120 ${filename_no_inc}*.jpg ${filename_no_inc}.gif
#Don't double process any images
prev_filename_no_inc=${filename_no_inc}
fi
doneCreate website
The script above will result in the following directory structure;
Preview the website
The script above will result in the following directory structure;