photoshop_recipe_passport_photo
Convert a portrait into a passport/ID photo: replace background with white, crop to ICAO headroom, resize to official pixels at 300 DPI, and export JPEG. Optionally build a 10x15cm print sheet.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Target size: us_2x2 (600×600 px), eu_35x45 (413×531 px), tr_50x60 (591×709 px). All at 300 DPI. Default us_2x2. | us_2x2 |
| quality | No | JPEG quality on the Photoshop 1-12 scale. Default 11. | |
| make_sheet | No | Also export a 10×15 cm (1200×1800 px @300 DPI) print sheet tiled with copies. Default false. | |
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |