Baby Photo Book
by @atmosphere16happy
Generate professional baby photo books from photos with intelligent layout. Automatically organizes photos by baby's age stages, applies smart layouts to min...
clawhub install baby-photo-bookπ About This Skill
name: baby-photo-book description: Generate professional baby photo books from photos with intelligent layout. Automatically organizes photos by baby's age stages, applies smart layouts to minimize whitespace, and outputs print-ready PDF. Use when user wants to create baby photo albums, generate photo books from baby pictures, or automatically layout photos for printing.
Baby Photo Book Generator
Generate professional baby photo books with intelligent layout optimization.
Features
Usage
Basic Usage
python scripts/generate_photo_book.py --name "Baby Name" --birth YYYY-MM-DD
Parameters
photo_folder: Path to folder containing baby photos--name: Baby's name for the cover--birth: Baby's birth date (YYYY-MM-DD format)--output: Output PDF filename (default: baby_photo_book.pdf)Example
python scripts/generate_photo_book.py ~/baby_photos --name "ε°ζ" --birth 2023-06-15
Layout Algorithm
The skill uses an intelligent layout engine that:
1. Analyzes photo aspect ratios to determine optimal placement 2. Calculates multiple layout options for each page 3. Selects the layout with minimum whitespace 4. Preserves photo proportions without cropping
Layout Patterns
| Photos | Layout Strategy | |--------|-----------------| | 1 | Full page, maximized to fill available space | | 2 | Side-by-side or stacked, whichever minimizes whitespace | | 3 | Left-1-Right-2 or Top-1-Bottom-2 based on photo orientations | | 4 | 2Γ2 adaptive grid with aspect-ratio-aware cell sizing |
Age Stages
Photos are automatically grouped by baby's age:
Dependencies
Install dependencies:
pip install Pillow reportlab
Output
Generates a PDF with:
π‘ Examples
python scripts/generate_photo_book.py ~/baby_photos --name "ε°ζ" --birth 2023-06-15