sinhsac.github.io / canon-selphy-cp720

Canon SELPHY CP720 · Photo Print Prep

Batch photo resizing and print-preparation studio for the Canon SELPHY CP720 dye-sublimation printer — exact 300 DPI pixel dimensions, overscan-safe & Polaroid borders, legacy EXIF compliance, live GUI preview, and scriptable CLI.

Fixed 300 DPI GUI + CLI Portable Windows .EXE Python 3.10+ MIT License

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

1

Windows Portable .EXE

Download SelphyCP720.exe from Releases and double-click to launch — zero Python installation needed.

2

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.

3

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 ImportAdd individual photos or whole folders with optional recursive subfolder scanning.
Virtualized GridHandles 5,000+ photos smoothly by rendering only visible tiles.
Live Side-by-Side PreviewDouble-click any photo to compare original vs. print-ready output, with a green overlay showing the exact crop region.
Resume-Safe ProgressExported photos are dimmed with a ✓ badge; re-running processes only remaining items.
Paper SizesPostcard (100×148 mm), L-size (89×127 mm), and Card (54×86 mm).
Borders & PolaroidBuilt-in millimeter presets, custom margins, Polaroid thicker bottom edge, and custom border color picker.
Auto-Saved SettingsSaves 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 mm on top/left/right edges and 14 mm on the bottom edge.
Important: Switch the CP720 to "Bordered" Mode

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).

CodeMeaningExample
%dDay of month (01–31)31
%mMonth (01–12)12
%Y / %y4-digit or 2-digit year2026 / 26
%H %M24-hour clock hour & minute18 30
%bAbbreviated month nameDec

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

OptionDefaultDescription
--sizelpostcard / l / card — must match loaded paper.
--padding0Border width in millimeters (0 = full bleed).
--padding-bottomsame as --paddingIndependent bottom border width in mm (Polaroid layout).
--padding-colorwhiteCSS color name or hex code (e.g., #F2EFE9).
--no-cropoffLetterbox entire photo instead of center-cropping to fill.
--date-stampoffEnable retro date stamp overlay.
--date-sourceexifexif / created / modified / now.
--date-format%d/%m/%YPython strftime format string.
--date-textnoneFixed custom label overriding automatic date lookup.
--date-positionbottom-rightbottom-right / bottom-left / top-right / top-left.
--date-color#FFB000Hex text color (classic film-camera amber).
--quality95JPEG output quality (1–100).
--no-sharpenoffDisable 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), and 4:2:0 chroma subsampling (subsampling=2). This tool enforces all three automatically using piexif, 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 (postcard vs l) 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.