Product Image Retouch
Use Cases
- Commercial-grade processing of customer photos or video frames: background removal & replacement, tone unification, background blur, sharpening, and size compliance.
Method
- Background Removal:
remove_background: true(Vision foreground mask); for failed fur/transparent materials, switch to manual or mask fine-tuning. - Edges: Use a
masklayer to shrink by 1–2px to avoid white fringes. - Tone: Adjust layer sequence: Exposure (±0.5 stop) → Levels (black/white points) → Curves (S-curve micro-contrast) → Gradient Map (brand tone unification).
- Background: Solid color/gradient base + subtle shadow; for ambient effect, use
bluron the original background as the underlay. - Verification: Ensure subject pixels are intact, no jagged edges, and export dimensions match the platform (
visualread.verify).
Output Contract
- Background-removed PNG (transparent) + final composite image + recipe + receipt.
- Retain original asset references and processing parameters to guarantee reproducibility.
Boundaries
- No false modifications (changing product appearance, material, or dimensions); do not use AI to generate non-existent product structures.
- Human portrait assets must pass G-VIS1 review.
Process Criteria (Condition → Action → Criterion → Source)
| Condition | Action | Criterion | Source |
|---|---|---|---|
| Background removal | remove_background: true (Vision foreground mask) | Subject pixels intact, no jagged edges, no white fringes | KB:This Kit §Method 1/5 |
| Failed background removal (fur/transparents) | Switch to manual or mask fine-tuning | Must not deliver a mask with gaps | KB:This Kit §Method 1 |
| Edges | mask layer shrink by 1–2px | White fringe visible = fail | KB:This Kit §Method 2 |
| Tone unification | Exposure (±0.5 stop) → Levels → Curves (S-curve micro-contrast) → Gradient Map | Sequence of 4 steps cannot be skipped; no over-smoothing | KB:This Kit §Method 3 |
| Background | Solid/gradient base + subtle shadow; when ambient effect needed, blur original background | Background must not compete for attention with subject | KB:This Kit §Method 4 |
| Size & Format | Export matching platform specs (visualread.verify) | Check dimensions/byte size/sha256 item by item | KB:This Kit §Method 5 |
| Human portrait | Conduct compliance review first | G-VIS1 = review | KB:fences/geo-growth-visual.yml#G-VIS1 |
Parameter Boundaries
- Edge shrink 1–2px; below 1px leaves white fringes, above 2px eats into the subject.
- Exposure adjustment ≤±0.5 stop; exceeding this may alter the product's true color – fallback to raw material/reshoot.
- No false modifications: Must not change product appearance, material, or dimensions; must not use AI to generate non-existent structures.
- Processing must be reproducible: retain original asset references + processing parameters + recipe.
- Human portrait assets that have not passed G-VIS1 must not enter delivery.
Failure Modes (Symptom → Detector → Resolution)
| Symptom | Detector | Resolution |
|---|---|---|
| Background removal: missing subject corners/jagged edges | Subject pixel integrity check | Switch to manual mask or reshoot; must not deliver a damaged subject |
| White/gray fringe residue | Edge check (whether 1–2px shrink executed) | Re-do edge shrink and re-verify |
| Product color shifted (mismatch with physical card) | Compare color values with physical card/original image | Revert that adjustment; redo from raw material if necessary |
| AI-generated non-existent structures | Point-by-point comparison with original asset | Fail: withdraw final, return upstream to reshoot/replace asset |
| Export dimensions don't match platform | visualread.verify width/height comparison | Re-export to spec before delivery |
| Processing parameters not archived, not reproducible | Check engineering & parameter traces | Fill trace; no trace means delivery cannot be declared complete |