A person who is not the subject stays whole or stays out. A ball on the floor does not decide a handball crop.
178 lines
14 KiB
Markdown
178 lines
14 KiB
Markdown
# Photo editing rules (autopilot and automatic crop)
|
||
|
||
What the automatic editor may do to a news or sports photo, and how it chooses. These rules are the contract for
|
||
`apps/api/src/composition/` and `apps/api/src/autopilot/`. Peter (and any editor) can tighten them per
|
||
organisation or event; nothing here may be loosened past the ethics section.
|
||
|
||
## 1. Ethics (fixed)
|
||
|
||
Following the AP and NPPA codes:
|
||
|
||
- **Allowed:** crop, straighten, white balance, exposure and contrast, colour and toning "minimally needed for
|
||
clear, accurate reproduction", conversion to black and white, dust removal.
|
||
- **Not allowed:** adding, removing, moving or cloning anything in the scene; blurring or darkening the background
|
||
to hide it; changes of density, contrast, colour or saturation that alter the scene; obscuring faces.
|
||
- **A crop must not change what happened.** If removing someone changes the story (the defender in a duel, the
|
||
referee showing a card, the goalkeeper facing the shot), they stay.
|
||
- Every automatic edit is an ordinary, undoable step in the photo's edit history, marked as made by the autopilot.
|
||
The original is never touched.
|
||
|
||
## 2. Crop
|
||
|
||
- **Who:** the subject is the person the camera focused on, when the file has a focus point (EXIF SubjectArea:
|
||
the autofocus point, shown by Photo Mechanic). That person wins even if someone else is larger. With no point,
|
||
or a point on nobody, the subject is the person in focus, not the biggest one. With a ball in play, the ball and
|
||
everyone contesting it come along. Without one, the subject and the sharp people with them (a duel, a
|
||
celebration, a line-up).
|
||
- **Who is not the subject:** they are in whole, or they are out. A person the photo has already cut in half
|
||
stays out when the crop can move into the clean space around the subject. When leaving them out would cut the
|
||
subject or the ball, the crop does the best it can. The subject themselves may stand at the frame edge.
|
||
- **The ball depends on the sport** of the event. Handball plays the ball in the hands or in the air. A ball
|
||
below the knee is on the floor: it does not frame the photo, even when it overlaps the player's legs and sits
|
||
closer to the middle of the body. Football plays the ball on the ground, so the ball at the feet is the one
|
||
that stays. A spare ball that nobody is playing never wins, in either sport.
|
||
- **Shape:** the photo's own aspect unless the event or the editor chose another (never turned vertical).
|
||
- **Context:** a generic event (no opponent, no fixture) is reportage. A match is sport, and a photo of that
|
||
match with no ball in play is cropped as a person. Reportage does not use the handball cut.
|
||
- **Framing** (per event, sport only):
|
||
- **"tight"** (default) is the agencies' handball framing, measured on kolektiff images (600 EHF/IHF photos of
|
||
2025-26). With a ball in play, the subject is about as tall as the crop and a leg may be cut mid-shin or
|
||
mid-thigh when the foot already leaves the photo. The face is big (a median face of 14% of the frame height)
|
||
near the top.
|
||
- **"full"** keeps whole bodies when they fit: Peter's usual crop, about two thirds of the frame.
|
||
- **Reportage** keeps a whole hand and a whole foot when they are in the photo. The sports framing on the event
|
||
is ignored. A person the frame has already cut in half is not pulled into the subject: half a body at the
|
||
edge is background, and the crop leaves it out whenever it can.
|
||
- **Never cut:** heads, faces, a hand or a foot that is whole in the photo, hands holding the ball, the ball itself.
|
||
A person who is in the crop keeps their head, including someone a little less sharp stood in the shade. In
|
||
reportage the people of a conversation are one subject, so the crop is built around all of them.
|
||
- **Limbs:** if a body has to be cut, cut mid-limb (mid-thigh, mid-shin, mid-forearm), never at a joint (ankle,
|
||
knee, hip, wrist, elbow, neck). The engine estimates joints from the body box and avoids crop edges there.
|
||
- **Feet and hands:** a foot or a hand that is whole in the photo stays in the crop. A foot keeps a little
|
||
ground under the sole. Cutting the shoe, the ankle or a hand just to fill the frame is not allowed. When the
|
||
foot already leaves the photo, the crop ends mid-shin or mid-thigh. It does not stop on the sock. Never at a
|
||
joint, and never through the ball.
|
||
- **Edges:** no slivers of other in-focus people at the crop edge: either in, or out. Blurred foreground and
|
||
background people don't count. In reportage this is absolute for anyone still reasonably sharp: the crop
|
||
keeps their head, and the primary crop keeps their feet when those feet are in the photo. A half or a
|
||
three-quarter may end at the waist, and it still starts above the head. A band through the chest is never a crop.
|
||
- **A bust is not the subject.** A head in a window, or a torso the detector stopped at the chest, does not
|
||
beat a whole figure standing in the same photo. The taller person, closer to the camera, stays in the frame
|
||
even when someone behind them is a little sharper.
|
||
- **Stray limbs:** a hand or a foot of someone who is not the subject, and nothing more of them, is cropped out
|
||
so the frame stays clean. So is a person the photo already cuts in half at the frame edge, when they are not
|
||
the subject. A whole other person is not that: they stay in or go out, they are not sliced.
|
||
- **Headroom:** heads a little below the top edge, not touching it, not floating in empty space.
|
||
- **Vertical placement:** the upper body (chest, faces) a little above the middle of the crop, never the knees.
|
||
Little or no empty pitch or floor under the feet: when the crop is taller than the subject, the spare height
|
||
goes above them (crowd, stands), not below.
|
||
- **Distractions:** prefer the crop that leaves out half-bodies, empty floor and bright clutter at the edges,
|
||
as long as nothing that matters goes with them.
|
||
- **Resolution:** never crop below what the delivery needs. Default: the crop keeps at least 2400 px on its long
|
||
edge of the original (configurable per organisation; agencies often ask for more). On a large file the floor
|
||
is 3000 px, not 35% of the frame (that held a modern body near 4000 px). An export at 4000 px enlarges
|
||
that crop, and only that far (at most a third). A smaller file is not blown up.
|
||
- **Not too much:** if the only crop that works is tighter than the resolution allows, keep the wider frame. A good
|
||
photo uncropped beats a bad crop.
|
||
- **Not for nothing:** a crop of more than 92% of the width is not made: the photo stays as shot. The agencies
|
||
send a fifth to a half of their photos uncropped (Getty, AFP, Paris 2024).
|
||
|
||
## 3. Bursts (sequences)
|
||
|
||
A camera at 10–30 frames per second sends several photos of the same moment.
|
||
|
||
- **A burst** is a run of photos from the same camera with less than 1.5 s between frames (configurable).
|
||
- **Score** of each frame: sharpness of the subject (focus landed on them, no motion blur), subject size, ball in
|
||
frame and near the subject, faces visible. Ties go to the earliest frame (usually the peak of the action).
|
||
- **Facing and eyes:** inside one burst, a frame of a player from behind loses to a frame where the face is
|
||
visible, and shut eyes lose to open ones, when the photos are far enough apart to tell. If every frame is a
|
||
back, or the eyes cannot be told apart, the sharpest frame stays. A back is not dropped from the match when it
|
||
is the only picture of that moment. In reportage a shut eye loses harder: sharpness does not rescue a blink
|
||
when another frame of the same moment has the eyes open. One closed face in a group is enough.
|
||
- **Keep:** the best 1–2 frames per burst (configurable), flagged as picks. The rest stay unflagged (never
|
||
rejected or deleted automatically).
|
||
- **Reportage sequences:** when three or more frames of one moment are sharp, keep up to three (even if the
|
||
event asked for fewer) and give them different plans: whole body, half body, three-quarter. More than three
|
||
of the same moment is too many. The half and three-quarter cuts sit mid-limb, and only when the file still
|
||
has the delivery's resolution. A blurred sequence stays at the event's number.
|
||
- **Variety (sport):** when two frames of a burst are kept, the second gets the other framing so the client has
|
||
a choice. After a tight first pick, the second gets the wider, whole-body frame with context, as Getty mixes
|
||
in. Otherwise the second is slightly tighter.
|
||
- **Saturation:** an event can cap how many picks one burst, or one minute of play, may produce, so a long attack
|
||
doesn't flood the delivery.
|
||
|
||
## 4. Autopilot
|
||
|
||
Per event (and an organisation default), off unless switched on. When on, every photo that arrives through FTP,
|
||
the local FTP of the desktop app or auto-ingest is, in order:
|
||
|
||
1. analysed (people, ball, focus);
|
||
2. edited: white balance, tone, level (only with a clear horizon or verticals, at most a few degrees), crop,
|
||
and the finishing look.
|
||
The level reads the advertising boards, stands, posts and railings, never the pitch markings (lines on grass),
|
||
which perspective tilts; when those lines disagree the photo is left as it is;
|
||
3. scored within its burst; when the burst ends, its best frames are flagged as picks;
|
||
4. optionally delivered (rendered with the edits, IPTC from the event) to the event's delivery target.
|
||
|
||
**Look** (per event, `apps/api/src/autopilot/look.ts`): fixed values on top of the measured tone, the same for
|
||
every photo of a match. They never go over a measured control.
|
||
|
||
- **"agency"** (default): kolektiff's punchy kits. Vibrance +18, saturation +4, clarity +8, texture +6, and
|
||
shadows a touch blue-magenta. Every agency measured has that last trait: Getty, AFP and kolektiff all do it.
|
||
- **"natural"**: Getty's more natural colour.
|
||
- **"none"**: no look.
|
||
- **Both looks** add capture sharpening (40, radius 1, masking 35), colour noise reduction, and luminance noise
|
||
reduction by ISO (from ISO 1600). Clarity, texture and sharpening are sized for the whole frame and applied
|
||
with the tone, before the crop takes effect: a crop that keeps half the frame keeps half of that strength
|
||
(never under a third), so a tight portrait does not grow a halo. There is never a vignette or a local change (§1).
|
||
|
||
Defaults follow the agencies: white balance on (neutral whites) and 75% of the automatic tone (full range,
|
||
pure blacks). Highlights and shadows in that automatic tone are one fixed recipe from raw files, not a reading
|
||
of the photo. On a camera JPEG the full recipe greys whites and flattens faces, so the highlight pull stops at
|
||
−20 and the shadow lift at +30.
|
||
|
||
Uploads made by hand in the browser are not touched. Anything the autopilot did can be undone, changed or reset
|
||
in Revelar.
|
||
|
||
### Learning from corrections
|
||
|
||
When someone changes a photo the autopilot edited, the difference (final minus autopilot, per control; and the
|
||
crop area against the autopilot's) is kept, one per photo, latest state wins (`develop_corrections`,
|
||
`apps/api/src/autopilot/learning.ts`). For the next photos of the same photographer the autopilot adds, to its own
|
||
measurement, the median of the last 60 corrections, at the same venue when there are at least 5 there:
|
||
|
||
- only the controls it sets itself (tone, white balance) and crop tightness, never a creative look;
|
||
- only with 5 or more corrections, and only when at least 70% of them go the same way (one odd photo changes
|
||
nothing); tiny differences are noise and very large ones creative choices, both ignored;
|
||
- the crop only gets tighter, never cutting into the subject (looser would eat the margins the subject needs).
|
||
|
||
The autopilot's panel in the app shows what it has learnt and has "Esquecer". The burst picks are not learnt yet.
|
||
|
||
## 5. Only the best
|
||
|
||
Some clients (ZeroZero) want a short gallery of the match, not every usable frame. With "Só as melhores do
|
||
jogo" the autopilot still flags each burst's picks for the photographer, but delivers only a curated set of
|
||
about the gallery size asked (`apps/api/src/autopilot/curate.ts`):
|
||
|
||
- the match (from kick-off, its typical length by sport: football 115 min with the break, handball 80) is cut
|
||
into 5-minute windows; each window may add its share of the gallery, and a share it did not use (the break,
|
||
a quiet spell) carries forward, at most three windows' worth at once; at most 10% over the size in all;
|
||
- one candidate per burst (its best frame), ranked by game moment: the frame score, more with the ball in play
|
||
(×1.3), a duel or a celebration (several people in the subject), less when the subject is small (far away);
|
||
the photographer's stars count (+20% each), a rejected frame never goes;
|
||
- frames well below the match's typical frame (half the median) are left out even when the window has room,
|
||
and never two frames of the same moment (8 s);
|
||
- warm-up and line-ups (more than 5 minutes before kick-off) are not candidates;
|
||
- a window is decided a minute after it ends, so the gallery reaches the client with about 6 minutes' delay.
|
||
|
||
After the match, "Melhores…" in the library sends the best N of the event the same way (filling up to N with
|
||
the best frames left when the windows' shares fall short); without the autopilot, stars and picks rank.
|
||
|
||
## Sources
|
||
|
||
- AP and NPPA codes, summarised by the CUNY Newmark J-School: https://photo.journalism.cuny.edu/?p=201
|
||
- Cropping at mid-limb, not at joints; keep meaning; avoid clutter: https://www.walsworthyearbooks.com/top-10-essential-rules-for-good-photo-cropping/
|
||
- Burst culling criteria (subject sharpness, eyes, ball, peak action, 1–3 per burst): https://filterpixel.com/blog/sports-photography-burst-mode-culling
|
||
- Peter's own Lightroom crops (65 picked photos, handball, October 2026): crops in the photo's aspect, often
|
||
exactly two thirds of the frame, straightening of 0.5–3.3°.
|