← 返回 Skills 市场
atmosphere16happy

Baby Photo Book

作者 atmosphere16happy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
72
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install baby-photo-book
功能描述
Generate professional baby photo books from photos with intelligent layout. Automatically organizes photos by baby's age stages, applies smart layouts to min...
使用说明 (SKILL.md)

Baby Photo Book Generator

Generate professional baby photo books with intelligent layout optimization.

Features

  • Automatic Age Grouping: Organizes photos by baby's growth stages (newborn, infant, toddler)
  • Smart Layout: Minimizes whitespace while preserving photo aspect ratios
  • Multiple Layout Patterns: Supports 1-4 photos per page with optimal arrangements
  • Print-Ready Output: Generates A4 PDF suitable for professional printing

Usage

Basic Usage

python scripts/generate_photo_book.py \x3Cphoto_folder> --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:

  • Newborn (0-1 month)
  • Early Infant (1-3 months)
  • Mid Infant (3-6 months)
  • Late Infant (6-9 months)
  • Crawling (9-12 months)
  • Early Toddler (1-1.5 years)
  • Mid Toddler (1.5-2 years)
  • Late Toddler (2-3 years)

Dependencies

  • Python 3.8+
  • Pillow (image processing)
  • ReportLab (PDF generation)

Install dependencies:

pip install Pillow reportlab

Output

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
安全使用建议
This skill appears to do what it claims: local photo processing and PDF generation with no external credentials. Before installing or running it, do the following: (1) open and review the remainder of scripts/generate_photo_book.py (the supplied file was truncated) and confirm there are no network calls (requests, urllib, socket), subprocess/os.system usage that executes external commands, or code that reads files outside the provided photo_folder. (2) Search the script for suspicious tokens (http://, https://, base64, eval, exec, importlib, subprocess, socket). (3) Run the script in a sandbox or on a disposable VM with non-sensitive photos first. (4) If you will install dependencies via pip, prefer a virtualenv to avoid polluting system packages. If you want, paste the rest of generate_photo_book.py and I will re-check the remaining lines for any hidden or unexpected behavior.
功能分析
Type: OpenClaw Skill Name: baby-photo-book Version: 1.0.0 The skill is a legitimate utility for generating PDF photo books from a directory of images. The Python script (scripts/generate_photo_book.py) uses standard libraries such as Pillow and ReportLab to process images and create layouts based on EXIF metadata. There is no evidence of data exfiltration, malicious command execution, or prompt injection in the documentation (SKILL.md) or the code.
能力评估
Purpose & Capability
Name, description, SKILL.md usage, listed dependencies (Pillow, ReportLab) and the included Python script all align with a local photo-to-PDF book generator. There are no declared env vars, binaries, or config paths that don't belong to this purpose.
Instruction Scope
SKILL.md only instructs running the local Python script against a photo folder and supplying baby name/birth date. The visible part of the script operates on local image files, reads EXIF (to infer dates), arranges layouts, and writes a PDF. This is within scope. Note: the provided generate_photo_book.py was truncated in the manifest — you should confirm the remainder does not perform unrelated actions (network calls, reading unrelated system files, or transmitting data).
Install Mechanism
No install spec is present; the skill is instruction-only with a Python script. Dependencies are standard Python libraries (Pillow, ReportLab) and are installed via pip per the README. No downloads from unknown hosts or archive extraction is specified.
Credentials
The skill requires no environment variables or credentials. The script accesses local photo files and attempts to register local fonts from well-known OS font paths — these are appropriate for generating localized PDFs and do not require secrets.
Persistence & Privilege
always is false and model invocation is normal. The skill does not request persistent agent-level privileges or write to other skills' configuration. Running the script writes an output PDF (expected) but does not request elevated system changes in the visible code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install baby-photo-book
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /baby-photo-book 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Baby Photo Book Generator - Automatically organizes baby photos by age stages - Applies intelligent layouts to minimize whitespace and preserve aspect ratios - Supports multiple layout patterns (1–4 photos per page) - Outputs print-ready, A4-sized PDF with cover, chapters, and annotated photo pages - Simple command-line usage with customizable options
元数据
Slug baby-photo-book
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Baby Photo Book 是什么?

Generate professional baby photo books from photos with intelligent layout. Automatically organizes photos by baby's age stages, applies smart layouts to min... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 Baby Photo Book?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install baby-photo-book」即可一键安装,无需额外配置。

Baby Photo Book 是免费的吗?

是的,Baby Photo Book 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Baby Photo Book 支持哪些平台?

Baby Photo Book 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Baby Photo Book?

由 atmosphere16happy(@atmosphere16happy)开发并维护,当前版本 v1.0.0。

💬 留言讨论