Default configuration
Relative paths:
Relative path (path which doesn’t start by a /
) can be used. In this
case, the path is considered starting from the configuration file location.
List of elements:
Option with mention list of quoted ...
indicated means that a list of 2 or
more elements can be provided. A list starts and finishes with parenthesis
(...)
. Each element is separated by a comma ,
.
[GENERAL]
# User interface language: 'br', 'de', 'dk', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'no', 'pt' or 'se'
language = en
# Path to save pictures (list of quoted paths accepted)
directory = ~/Pictures/pibooth
# Start pibooth at Raspberry Pi startup
autostart = False
# How long to wait in seconds before start pibooth at Raspberry Pi startup
autostart_delay = 0
# In debug mode, exceptions are not caught, logs are more verbose, pictures are cleared at startup
debug = False
# Path to custom plugin(s) not installed with pip (list of quoted paths accepted)
plugins =
# Plugin names to be disabled after startup (list of quoted names accepted)
plugins_disabled =
# Enable a virtual keyboard in the settings interface
vkeyboard = False
[WINDOW]
# The (width, height) of the display window or 'fullscreen'
size = (800, 480)
# Background RGB color or image path
background = (0, 0, 0)
# Font name or file path used for app texts
font = Amatic-Bold
# Text RGB color
text_color = (255, 255, 255)
# Blinking background when a capture is taken
flash = True
# Animate the last taken picture by displaying captures one by one
animate = False
# How long is displayed the capture in seconds before switching to the next one
animate_delay = 0.2
# On 'finish' state: how long is displayed the final picture in seconds (0 if never shown)
finish_picture_delay = 0
# On 'wait' state: how long is displayed the final picture in seconds before being hidden (-1 if never hidden)
wait_picture_delay = -1
# How long is displayed the 'chosen' state: (0 if never shown)
chosen_delay = 4
# Show arrows to indicate physical buttons: 'bottom', 'top', 'hidden' or 'touchscreen'
arrows = bottom
# Apply horizontal offset to arrows position
arrows_x_offset = 0
# How long is the preview in seconds
preview_delay = 3
# Show a countdown timer during the preview
preview_countdown = True
# Stop the preview before taking the capture
preview_stop_on_capture = False
[PICTURE]
# Orientation of the final picture: 'auto', 'portrait' or 'landscape'
orientation = auto
# Possible choice(s) of captures numbers (numbers between 1 to 4)
captures = (4, 1)
# Effect applied to the captures (list of quoted names accepted)
captures_effects = none
# Crop each capture border in order to fit the paper size
captures_cropping = False
# Thick (in pixels) between captures and picture borders/texts
margin_thick = 100
# Main text displayed
footer_text1 = Footer 1
# Secondary text displayed
footer_text2 = Footer 2
# RGB colors used for footer texts (list of tuples accepted)
text_colors = (0, 0, 0)
# Fonts name or file path used for footer texts (list of quoted names accepted)
text_fonts = ('Amatic-Bold', 'AmaticSC-Regular')
# Alignments used for footer texts: 'left', 'center' or 'right' (list of quoted names accepted)
text_alignments = center
# Overlay path (PNG file) with same aspect ratio than final picture (list of quoted paths accepted)
overlays =
# Background RGB color or image path (list of tuples or quoted paths accepted)
backgrounds = (255, 255, 255)
[CAMERA]
# Adjust ISO for lighting issues, can be different for preview and capture (list of integers accepted)
iso = 100
# Flip horizontally the capture
flip = False
# Rotation of the camera: 0, 90, 180 or 270, can be different for preview and capture (list of integers accepted)
rotation = 0
# Resolution for camera captures (preview will have same aspect ratio)
resolution = (1934, 2464)
# Delete captures from camera internal memory (when applicable)
delete_internal_memory = False
[PRINTER]
# Name of the printer defined in CUPS (or use the 'default' one)
printer_name = default
# Print options passed to the printer, shall be a valid Python dictionary
printer_options = {}
# How long is the print view in seconds (0 to skip it)
printer_delay = 10
# Number of pages automatically sent to the printer (or use 'max' to reach max duplicate)
auto_print = 0
# Maximum number of printed pages before warning on paper/ink levels (-1 = infinite)
max_pages = -1
# Maximum number of duplicate pages sent to the printer (avoid paper waste)
max_duplicates = 3
# Print 1, 2, 3 or 4 picture copies per page
pictures_per_page = 1
[CONTROLS]
# How long to press a single hardware button in seconds
debounce_delay = 0.3
# How long to press multiple hardware buttons in seconds
multi_press_delay = 0.5
# Physical GPIO IN pin to take a picture
picture_btn_pin = 11
# Physical GPIO OUT pin to light a LED when picture button is pressed
picture_led_pin = 7
# Physical GPIO IN pin to print a picture
print_btn_pin = 13
# Physical GPIO OUT pin to light a LED when print button is pressed
print_led_pin = 15