photoshop_recipe_passport_photo
Turn the active portrait into a passport/ID photo: removes the background via Select Subject, replaces it with white, crops around the subject with ICAO-style headroom, resizes to the exact official pixel size at 300 DPI, and exports a JPEG. Optionally also builds a 10×15 cm print sheet with multiple copies. Use when: passport photo, visa photo, ID photo, vesikalık, biyometrik fotoğraf. Do NOT use when: the document has no clear single subject, or official compliance must be guaranteed — head-size rules are approximated from subject bounds (no face detection); official acceptance is NOT guaranteed. Returns: { ok, summary, output_paths, details: { spec, width, height, sheet } }. Preconditions: PS ≥ 23 (Select Subject v2); active document with a single-person portrait. Side effects: writes one JPEG (+ one sheet JPEG when make_sheet); source document is unchanged.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| spec | string | — | Target size: us_2x2 (600×600 px), eu_35x45 (413×531 px), tr_50x60 (591×709 px). All at 300 DPI. Default us_2x2. |
| make_sheet | boolean | — | Also export a 10×15 cm (1200×1800 px @300 DPI) print sheet tiled with copies. Default false. |
| quality | number | — | JPEG quality on the Photoshop 1-12 scale. Default 11. |
Official
- Passport photoWhite background, proper headroom, exact size and DPI, optional print sheet.
Community recipes
Nothing here yet. Be the first to share one.
Share a recipe