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.
Generate professional baby photo books with intelligent layout optimization.
python scripts/generate_photo_book.py <photo_folder> --name "Baby Name" --birth YYYY-MM-DD
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)python scripts/generate_photo_book.py ~/baby_photos --name "小明" --birth 2023-06-15
The skill uses an intelligent layout engine that:
| 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 |
Photos are automatically grouped by baby's age:
Install dependencies:
pip install Pillow reportlab
Generates a PDF with: - Cover page with baby name - Chapter pages for each age stage - Photo pages with intelligent layouts - Date and age annotations on each photo
这是一款质量不错的宝宝相册生成工具,能自动按宝宝月龄整理照片、智能排版多张照片、生成可直接打印的 A4 PDF。功能实用,文档清晰,上手容易。但目前只有 Windows 电脑能用,缺少示例照片参考,部分布局计算可能存在小问题。对于想制作宝宝成长相册的家长来说是个好帮手,但期待更完善的用户体验。