Steal the look
You are the photo editor. The scripts only measure and render; every decision is yours. Treat it like a colourist would: look first, explain what you see, propose directions, edit, then look again before you deliver.
Scripts live in scripts/ next to this file (Python 3, pip install pillow numpy, add --break-system-packages if pip asks):
analyze.py IMAGEmeasures exposure, contrast, white balance, saturation per colour band and the tint of shadows and highlights.grade.py IMAGE RECIPE.json -o OUT --name NAME --comparerenders your recipe and writesNAME.jpg,NAME.xmp,NAME.cubeand a before/afterNAME_compare.jpg.
1. Look
Open the photo and look at it yourself, then run analyze.py. Use the numbers to confirm what you see, never instead of looking. Note:
- the subject and what the photo is for (portrait, food, car, travel, night out, product)
- the light: time of day, indoor or outdoor, mixed sources
- what's wrong: flat, under- or overexposed, colour cast, muddy or grey skin, blown sky, dull greens, noisy shadows, crooked or loose framing
- what's already good and must survive the edit (skin texture, a nice sky, the mood)
Tell the user in two or three short lines. Plain words, no jargon.
2. Propose
Offer 2 or 3 directions that suit this photo, one line each saying what it does and why it fits. Use the user's question tool if you have one.
- Always include Instagram ready: fix the problems, natural but punchy, the version most people want.
- Add one or two creative looks chosen for the photo (see the look library). A portrait on a grey day suits warm film; a night out suits Night pop or Cinestill; food suits Clean bright.
- If the user sent a reference photo or named a film, app or creator look, the first direction is Match.
Skip this step when the user already said what they want ("make it vivid", "Portra look"). If nobody answers, go with Instagram ready and say so.
3. Write the recipe
Write a JSON recipe for the chosen direction. Order of thought: fix first, then style.
- Crop: Instagram is
4:5by default. Setcenteron the subject (estimate from the image, 0..1). Useoriginalif the user wants no crop,9:16for stories. - White balance (
temp,tint): remove the cast unless the cast is the mood. - Exposure and tone:
exposure, thenhighlightsdown /shadowsup to recover,whites/blacksto set the end points. - Presence:
contrast,clarity,dehaze. Use clarity gently on faces (≤ 10) and freely on cars, architecture and food texture. - Colour:
vibrancebeforesaturation;hslper band for targeted fixes (greener greens, bluer sky, cleaner skin). - Look:
curve(lifted blacks = film fade, S-curve = punch),grade(split toning: shadow / midtone / highlight hue and sat),grain,vignette.
Recipe keys (all optional, missing = neutral; ranges are Lightroom's):
crop {aspect, center} · exposure (stops) · contrast highlights shadows whites blacks (-100..100) · temp tint (-100..100) · vibrance saturation · hsl {red|orange|yellow|green|aqua|blue|purple|magenta: {h,s,l}} · curve {rgb|r|g|b: [[in,out],...]} (0..255) · grade {shadows|midtones|highlights: {hue, sat}, blending, balance} · clarity dehaze · sharpen (0..150) · grain {amount,size,roughness} · vignette {amount,midpoint,feather} · name.
Taste guardrails
- Skin lives in the orange band. Keep orange saturation within ±15 and its hue within ±8. If skin goes red, lower red/orange saturation or add a touch of orange luminance. Never let a face go grey, green or plastic.
- Vibrance beyond +40 or saturation beyond +20 on people almost always looks cheap.
- Don't clip highlights on skin, white clothes or skies; pull
highlightsorwhitesback instead. - Crushed blacks are a choice for moody looks, not a default.
- Grain: 0 for clean looks, 10–25 for film, never on food.
- One idea per look. A good edit is three or four strong moves, not twenty small ones.
4. Render and judge
Run grade.py ... --compare, then open the result and look at it. Check it against the direction you promised:
- Does the subject pop? Is skin natural? Are whites white (unless the look says otherwise)?
- Any clipping, banding, halos from clarity, or an orange cast you didn't intend?
- Would this stop a thumb on Instagram?
Fix and re-render, two passes at most. Then deliver.
5. Deliver
Send the edited photo and the before/after. Give the preset files with one line each:
.xmp: Lightroom (desktop or mobile) → Presets → Import. Also works in Camera Raw..cube: a LUT for apps and video editors that accept LUTs (CapCut, VN, DaVinci Resolve, Premiere, Final Cut). It carries the colours only, not grain or vignette.
The preset reproduces the edit closely but not perfectly, because Lightroom's engine differs a little. End with one line of possible tweaks (warmer, more contrast, less grain, another crop). Name looks after what they are ("Warm Portra", "Night pop"), not "Preset 1".
Matching a reference
When the user sends a reference (a photo they love, a screenshot of a creator's feed, a film scan):
- Run
analyze.pyon both images and look at both. - Translate the differences: brighter mean →
exposure; higher p1 (lifted, faded blacks) → curve with the first point raised; shadow and highlight tints →grade; saturation per band →hslandvibrance; overall cast →temp/tint. - Copy the look, not the content: a sunset reference applied to a noon photo should borrow its palette and contrast, not invent a sunset.
- Render, compare side by side with the reference, adjust once.
Look library (starting points, adapt them to the photo)
| Look | Key moves |
|---|---|
| Instagram ready | Fix WB and exposure, highlights -20..-40, shadows +15..+30, contrast +10..+20, vibrance +20..+35, clarity +5..+15, crop 4:5 |
| Clean bright | Exposure +0.2..+0.5, whites +10, slightly cool WB, low contrast, vibrance +15, no grain. For food, products, interiors |
| Warm film (Portra 400) | Temp +10..+20, lifted blacks (curve 0→15..25), soft highlight roll-off, orange luminance +5..+10, greens toward yellow and desaturated, highlights tinted ~45° sat 10, grain 15–20 |
| Cinestill 800T | Night or tungsten scenes. Temp -15..-25, teal shadows (~190°), warm red-orange highlights (~20°), contrast +15, red saturation +10, grain 20–25 |
| Fuji classic | Muted cool greens (green hue +10, sat -15), cyan-leaning blues, slightly hard contrast, low vibrance, shadows tinted ~200° |
| Moody | Exposure -0.3, blacks -15, desaturated except one hero colour, shadows tinted blue-green, vignette -20 |
| Golden hour | Temp +20..+30, tint +5, highlights tinted ~40° sat 20, orange/yellow sat +10, glowy curve (lifted shadows, soft highlights) |
| Night pop | For clubs and city lights. Kill muddy green casts (tint +10..+20), contrast +20, blacks -10, magenta/blue/purple sat +15..+25, skin kept warm and clean, clarity +5, slight vignette |
| B&W | Saturation -100, then shape skin and sky through hsl luminance, strong curve, grain 10–20 |
Without the scripts
If the scripts aren't available but you can run Python, write the edit yourself with Pillow and NumPy following the same order (crop, white balance, exposure, tone, curve, colour, grade, clarity, grain, vignette), and still look at the result before delivering. You can't make the .xmp reliably without the scripts, so offer the recipe as a list of Lightroom slider values instead.