Why Prepare Photos at Exact 300 DPI?
The Canon SELPHY CP720 prints at a fixed 300 DPI. Sending raw 24 MP camera images does not increase print sharpness — instead, the printer's 2006 hardware downscales the file internally with a coarse algorithm, softening details and slowing down transfer times.
This tool resizes every image to the exact pixel dimensions for your loaded paper using high-quality Lanczos resampling with gentle compensating sharpening (UnsharpMask), preserves CP720-compatible EXIF IFD1 thumbnails and standard Huffman JPEG tables, and lets you preview crops, borders, and retro date stamps before printing.
Quick Start
Windows Portable .EXE
Download SelphyCP720.exe from Releases and double-click to launch — zero Python installation needed.
Or Run via start.bat
Clone the repo on Windows and run start.bat. It detects Python 3.10+, installs dependencies automatically, and opens the GUI.
Linux / macOS / Manual
Run pip install -r requirements.txt followed by python selphy_gui.py (or invoke the CLI directly).
Desktop GUI Features
| Feature | What It Does |
|---|---|
| Batch Import | Add individual photos or whole folders with optional recursive subfolder scanning. |
| Virtualized Grid | Handles 5,000+ photos smoothly by rendering only visible tiles. |
| Live Side-by-Side Preview | Double-click any photo to compare original vs. print-ready output, with a green overlay showing the exact crop region. |
| Resume-Safe Progress | Exported photos are dimmed with a ✓ badge; re-running processes only remaining items. |
| Paper Sizes | Postcard (100×148 mm), L-size (89×127 mm), and Card (54×86 mm). |
| Borders & Polaroid | Built-in millimeter presets, custom margins, Polaroid thicker bottom edge, and custom border color picker. |
| Auto-Saved Settings | Saves preferences automatically to selphy_gui_settings.json. |
Choosing Border Width & Printer Mode
SELPHY borderless printing scales photos slightly larger than the paper and trims ~2 mm of overscan on each edge:
- 2 mm: Almost entirely trimmed away by overscan.
- 4 mm (Recommended): Clean, balanced border that stays clearly visible.
- 5–6 mm: Bold, classic framed-print look.
- Polaroid Style:
5 mmon top/left/right edges and14 mmon the bottom edge.
Whenever you add white or Polaroid borders, make sure your CP720 printer is set to Bordered mode and that your selected --size matches the loaded paper cassette. Leaving the printer on Borderless will zoom and trim away the border you added.
Retro Date Stamps
Choose from 4 date sources — EXIF Capture Date, File Created Date, File Modified Date, or Today — or imprint fixed custom text such as Wedding 20/09/2026. Stamps are rendered after resizing (for crisp typography) and before padding (so text stays inside the photo).
| Code | Meaning | Example |
|---|---|---|
%d | Day of month (01–31) | 31 |
%m | Month (01–12) | 12 |
%Y / %y | 4-digit or 2-digit year | 2026 / 26 |
%H %M | 24-hour clock hour & minute | 18 30 |
%b | Abbreviated month name | Dec |
Command-Line Interface (CLI)
Both the GUI and CLI call the exact same render_for_print() engine so batch scripts match previews pixel-for-pixel:
# Process an entire folder: Postcard size with 4 mm white border
python resize_for_selphy_cp720.py ./photos/ -o ./print_ready/ --size postcard --padding 4
# Keep the full photo (letterboxed, no crop) + Polaroid border
python resize_for_selphy_cp720.py ./photos/ -o ./print_ready/ --no-crop --padding 5 --padding-bottom 14
# Imprint file creation date in classic film amber
python resize_for_selphy_cp720.py ./photos/ -o ./print_ready/ --padding 4 \
--date-stamp --date-source created --date-format "%d/%m/%Y"
Key CLI Options
| Option | Default | Description |
|---|---|---|
--size | l | postcard / l / card — must match loaded paper. |
--padding | 0 | Border width in millimeters (0 = full bleed). |
--padding-bottom | same as --padding | Independent bottom border width in mm (Polaroid layout). |
--padding-color | white | CSS color name or hex code (e.g., #F2EFE9). |
--no-crop | off | Letterbox entire photo instead of center-cropping to fill. |
--date-stamp | off | Enable retro date stamp overlay. |
--date-source | exif | exif / created / modified / now. |
--date-format | %d/%m/%Y | Python strftime format string. |
--date-text | none | Fixed custom label overriding automatic date lookup. |
--date-position | bottom-right | bottom-right / bottom-left / top-right / top-left. |
--date-color | #FFB000 | Hex text color (classic film-camera amber). |
--quality | 95 | JPEG output quality (1–100). |
--no-sharpen | off | Disable post-resize compensating UnsharpMask. |
Building the Standalone Windows Executable
build_exe.bat
Generates dist\SelphyCP720.exe (~20 MB single-file executable via PyInstaller and selphy_gui.spec).
Troubleshooting
- Printer shows a
?icon instead of the photo: The CP720's legacy hardware decoder requires valid EXIF metadata with an embedded IFD1 thumbnail, standard Huffman tables (optimize=False), and4:2:0chroma subsampling (subsampling=2). This tool enforces all three automatically usingpiexif, but web-downloaded images that never had an EXIF thumbnail should be replaced with original camera/phone photos. - Borders get cut off on print: Double-check that your selected paper size (
postcardvsl) matches the paper cassette and that the printer is set to Bordered mode. - Windows SmartScreen warning: Click More info → Run anyway, or run directly from source using
start.bat.