The problem
Combining a folder of images into a single PDF is a repetitive task with no clean, scriptable open-source CLI solution. Most options require heavyweight GUI tools.
Approach
A short, dependency-light Python script that accepts a directory of image files and outputs one merged PDF. Handles sorted ordering and page sizing automatically.
Outcome
A minimal utility that does one thing well: run it, get a PDF.
Highlights
- Supports JPEG, PNG, BMP, and TIFF inputs.
- Single-file implementation, easy to audit and modify.
- Sorted ordering and automatic page sizing.
- No heavyweight dependencies beyond Pillow.

