A conversation was cropped around one person, so the others lost their heads. The people standing together are one subject, and a crop that keeps a body but not the head is rejected. A shut eye loses to an open one, blocked shadows are opened and blown highlights are pulled, and a large file may crop down to 3000 px.
A generic event, and a match photo with no ball, keeps a whole hand and a whole foot. A leg is cut only when the foot already leaves the frame. A stray hand or foot of someone else is left out, and a sharp reportage sequence can keep up to three plans.
Tight framing was scoring a cut through the shoe whenever the feet fit in the frame. A complete foot stays in, with a little ground under the sole; mid-shin and mid-thigh remain only when the body runs off the frame or the whole body cannot fit.
Measured on kolektiff images (600 EHF/IHF handball photos, 2025-26) and Getty/AFP (1093 action photos, Paris 2024):
- Framing "tight" (default): the subject about as tall as the crop, legs cut mid-shin or mid-thigh (never at a
joint, never below the ball), the photo's own shape. The second pick of a burst gets the whole-body frame.
A crop over 92% of the width is not made: the photo stays as shot.
- Look "agency" (default, kolektiff) or "natural" (Getty): vibrance, clarity, texture, slightly cool shadows,
capture sharpening, noise reduction by ISO. Never a vignette or anything local (ethics rules).
- Defaults: white balance on, 75% of the automatic tone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
A folder such as CPACxRAFC was stored as one name with no championship. Editors who can edit a folder can now pick another person, with the official face, club and number. Failed face reads are retried a few at a time.
- Downloads: one photo, a selection (up to 100) or a whole gallery (ZIP, up to 1000) at 2048 px with
metadata, through a short-lived signed link. Gallery and large view get the buttons.
- The cloud is named only to those who edit the folder there (a small "originals" link); sign-in no
longer mentions it.
- cloud_sources.hostname: the site's middleware serves that archive at the root of its own host;
Caddy asks /v1/archive/host before getting a certificate. Set in the app (Endereço próprio).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
"Rever rostos" appears for viewers with edit rights on the cloud (with how many suggestions wait): face groups by
state, filtered by person, one card per group with its sharpest faces and how sure; confirm, "não é", false
positive, name an unnamed face, undo, one at a time (keys C, N, F) or for a selection. The large view offers the
same on each face. A person's page shows their recognition state and history to editors and, to whoever edits
the whole archive, taking back every suggestion, dropping a wrong reference photo, and turning recognition off
(with the names already given, if chosen) or on again.
Layout fixes found on phone and tablet; docs updated for templates and face review.
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
Closing the browser signed a viewer out: the session lived in sessionStorage and the grant ended after 12 hours.
"Manter sessão iniciada" (on by default) now keeps the token in localStorage and the viewer's app password,
sealed, on the grant. The session lasts while it is used at least once a month, and what is shared is read from
the cloud again when the last reading is over 10 minutes old, so a share taken away there is gone here too. A
refused app password ends the session; an unreachable cloud keeps the last reading for one hour, never longer.
"Sair" revokes the kept app password. Unticked, sign-in works as before (revoked at once, 12 hours).
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
A folder the program writes as AAAS x SCP is Águas Santas x Sporting, so the archive check that already runs when the worker starts attaches the official game. Suggestions on a linked game stay inside the two squads. An export can also keep the same file in a local folder named by the day, the game and the destination, and a gallery can pick anyone named in that game.
The crop follows the camera focus point when the file has one, and a sequence keeps the frame with a visible face and open eyes when those can be told apart.
The photo turns under an upright crop while cropping (the engine still renders the
whole frame unturned; the loupe shows the angle), so the crop matches the result.
- Drag outside the crop rotates the photo with the pointer (grid and angle readout).
- Ctrl/Cmd + drag draws a line to level along (horizon or plumb lines).
- Corners and edges resize and stay on the rotated photo; Shift keeps the shape,
Alt resizes about the centre.
- X swaps portrait/landscape keeping the aspect, A locks the aspect, O / Shift+O
cycle and turn the guides, Enter done, Esc cancels, Ctrl/Cmd+Alt+R resets.
Geometry is a port of lightcraft-geom (crop.rs, crop_drag.rs) and the ui-egui
crop guides, in apps/app/src/develop/crop.ts, with tests.
Also fixes the app typecheck (CardScan waitLine) that broke the app build.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RL6fqg8fuk1vKF4H6Zrh9V
Once the edits of a delivered photo pause for a minute, it goes again to every destination it went to, with the same name: files are replaced; on ZeroZero the new image goes up and the previous one is deleted. Originals' backups are not resent; deliveries made before count as current.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A folder is matched to an official game only when both teams are recognised (never a first team for its B side); legends', veterans', charity and exhibition games never get a championship fixture; every match but a manual one is made again on start and every six hours (one failing folder never stops the rest), renaming events to clean team names. The viewer merges teams written with dates before them and known teams under one name. Faces are never suggested as someone of another sport, and old such suggestions are taken away. Visible loading in the archive site. More archive work at once (previews, images in flight, face processes).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
An every-arrival destination can take only some FTP logins' photos, and with "untouched" the original goes byte for byte as the camera sent it, with its own name, into the folder a local Photo Mechanic Live Ingest watches. The photo still enters PhotoReport as any FTP arrival.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The archive reads the FPA national games of any season it meets (club by club from today's agenda, following every club met, regional games left out), in the background in the worker, then matches every gallery again. Galleries split into official games, games known by their folder only, and events; events read no shirt numbers (faces only).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Templates (IPTC pad, folders, file names, rename on arrival) take every variable of Photo Mechanic's list under its names and short names, in any case, with its modifiers (substrings, lc/UC/PC, tr:find/repl). IPTC variables are the photo's pad, as in Photo Mechanic. The pad gains every Photo Mechanic field with the same IIM/XMP tags, read back from incoming files. Camera details (exposure compensation, flash, metering, program, white balance, 35mm, lens range, firmware, owner, artist, GPS) are kept in photos.exif at ingest and read from the file at delivery for older photos.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Galleries were matched to Liga games of January/February 2027 and a name event was dated 2028. Fixtures not yet played are never candidates; a folder date in the future is read the other way (23.09.28 -> 2023-09-28) or ignored, and name events are never dated ahead. A folder whose name has no day is dated by its photos' camera time (captureDay: 3+ photos, 60%+ on one Lisbon day); a date in the name always wins. Every walk, and on start for all clouds (verifyAll), FIXTURE galleries dated ahead, or (no day in the name) on another day than their photos, are taken off that game for good.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A destination can take the originals as they arrived (no resizing or recompression; IPTC written by exiftool; renamed by the templates), like Photo Mechanic's Live Ingest destination, and every arrival (FTP, desktop, uploads, once in an event) can be queued to it on its own. On a LOCAL destination: one's own backup in a folder on the computer, e.g. /Users/cyclop/Desktop/2026/{iptcdate} - {event}/PS_{event}_{timesort}.jpg. Adds {iptcdate} (CCYYMMDD).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Archive photos ended up in a live event (SC Braga x Sporting CP) from other games. The archive now keeps to its own events (never a library event, even for the same fixture); name events only join archive events of the same day, never by the cloud folder's date; a fixture needs a dated folder or competition+season+matchday, and reserve/youth/women's sides never match the first team. A FIXTURE folder whose photos were taken more than 36 h from the game is taken off it for good (cloud_folders.fixture_rejected). On start the worker moves folders out of live events (leaveLiveEvents), their CLOUD photos with them (faces found again), keeping photos that were already there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A person's number is read for the event's context (faces/numbers.ts): that season's squad, then what the shirts clearly read in their confirmed photos of the same season and competition (first when the game is not an official match), and the number typed on the person only in the current season and never for a national team. Used for face/number agreement, squad suggestions and the shirt-sample labels (which never take the model's own readings).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
cloud_sources.look (liga, fpa or none), set from the source's name or folder and changeable in the app. The archive site wears Liga Portugal's (night blue, orange, condensed capitals) or the FPA's (light grey, red bar, Open Sans capitals) colours and type; no marks or logos of theirs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
WebDAV through Nextcloud's PHP is what holds a big import back (CPUs idle). ARCHIVE_LOCAL_DIRS maps a cloud folder to its data on a read-only mount; files there are read from disk, the rest downloaded as before. Downloads in flight: up to 4 per CPU (192).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A photo's faces against the library's face groups and named people (all events or one),
results in the library grid with who it is; on the sites, a visitor's face in one gallery.
Only with biometrics on; the photo is read in memory and never kept. The API runs its own
face engine on demand (stopped when idle).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
API and worker report error log lines, unhandled 5xx and crashes to the hub with the
photoreport ingest key (ERROR_REPORTING_TOKEN); browsers (app, desktop webview, sites),
Next server renders and the print agent send through POST /v1/client-errors so the key
stays on the server. Repeats folded, rate-limited. docs/errors.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Folders read as the FPA names them: a game's halves, warm-up and ceremony share the game's
event; a dated session's folders are athletes, named on their photos; national team codes
become countries; PO codes in every spelling and matchdays in names; club initials resolve
to the club's name. Rematch puts existing galleries right. Viewer: section per gallery,
Equipas only from games, and an Atletas list.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Ingest, archive, faces, render and delivery concurrency come from the container's
cores and memory at start (logged as capacity); env values only pin them. The
archive takes less while live work keeps the CPUs busy (cgroup CPU pressure, or the
load average) or memory runs short, and all of it again when quiet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The Arquivo page shows free space and what the photos still to index will take
(about 1.6 MB each); the worker stops indexing below ARCHIVE_MIN_FREE_GB
(default 25) and resumes by itself.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Viewers find athletes by face within the galleries shared with them: a people
directory with faces by club, every photo of a person (identified, probable,
look-alike with a score), and clickable face boxes that find more of that face.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Nextcloud archives (FPA, Liga) connected with the login flow v2, walked by etag,
indexed as previews whose originals stay on the cloud, galleries matched to
official games. App: Arquivo module. Site: /arquivo/<id> for viewers who sign in
with their own cloud account and see only what is shared with them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A delivery waiting for an original never got it when Photo Mechanic had written captions into the file on the computer (its fingerprint changed, so the desktop could not find it). The desktop now sends the file it recorded for that photo to POST /v1/photos/:id/original, which takes it when it has the photo's pixel size. The "best" delivery gets an option to send again the ones the destination already has.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The desktop takes the passwords out of Photo Mechanic's accounts and FileZilla's site manager and hands them over on their own when they are readable (plain, or base64 that decodes to text); the wizard fills them in and says so. Encrypted ones (FileZilla with a master password, binary Photo Mechanic blobs) are flagged to be typed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
macOS file systems ignore case, so importTargets.ts and ImportTargets.tsx were the same module there and the 0.3.9 build failed. The parser is now importSources.ts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A LOCAL destination renders on the server and waits for the desktop app that chose the folder; the app saves it there and reports back. Destinos gains an import wizard for Photo Mechanic and FileZilla destinations (passwords are typed here, never read). Desktop 0.3.9.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A new delivery kind for fotos.zerozero.pt: the server signs in with the photographer's zerozero.pt account (OAuth through ax_login.php), finds the event's game among the desk's upcoming games by teams and kick-off (or uses a pasted link), and uploads with tus, with the photographer as the author.
"Only the best": an autopilot selection that delivers a short gallery of game moments (about N photos), spread over the match in 5-minute windows with unused shares carried forward, ranked by action (ball, duels, celebrations, big sharp subjects, stars), without twins. After the match, "Melhores..." sends the best N of an event the same way.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The match report lists the bench officials' coaching grade where players have their licence; the match page's team panes carry it, so coaches and directors now get their licence photo too. Referees and table officials come with full name and CIPA from the report and are kept as an FPA "Arbitragem" team, so the names the match page gives before a game find their licence, photo and full name; table officials become people of the event like the referees. Reports read before this are read again once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The FPA publishes no squad lists, but its match reports (Boletim do Jogo) list every player with shirt number and licence number, the bench officials by card letter (Oficial A-F) and the referees. Teams of the senior national leagues and cups start from their club's last three reports, a few per refresh; then each report of a game played is read once. Licence photos are looked up for the people of an event being synced (biometrics on) and become reference photos; referees come from the report or the match page.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A face suggestion whose shirt reads the same number goes up (+0.15 x the reading, max 0.99). Teams' kit
colours are learnt from confirmed players and from suggestions where face and shirt agree, and the kit decides
between two near faces wearing the number read (one per team).
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Champions League, Europa League, Conference League, Women's Champions League and Futsal Champions League from
match.uefa.com (the JSON uefa.com reads; not documented, asked sparingly). Fixtures carry venue and the referee
team; squads (numbers, positions, headshots, coaches) grow from the sheets of matches played, and the match's own
sheet is read from 1 h before kick-off. On an event the referee team on the pitch becomes people ("Arbitragem").
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A weak or ambiguous face match is settled by the number read on the shirt; a sure face whose shirt clearly
reads another number is suggested as less sure; when both teams have a player with the number, the kit colour
(median of the chest, per face) against each team's confirmed players decides, or nothing is guessed.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A sample of Liga Portugal 2026/27 photos (14 clubs) shows no chest numbers: the front number is on the shorts.
Each confirmed face now gives two samples (region CHEST and SHORTS); the reader tries both and keeps the more
confident reading. Faces collected before get the shorts crop once (faces.jersey_crops). Synthetic training
data also paints small side numbers.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The desktop app opens and keeps working offline: events, photo lists, edit states, thumbnails and previews are kept on the computer; photos arriving by FTP show at once (filed by capture time) and can be culled, named and edited before upload; culling, IPTC and "send to" made offline wait in order and go when the server answers; uploads wait instead of failing. The autopilot never edits over a person's edit.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The window always opens the interface from disk (no download to start, works offline). Each web deploy publishes ui-manifest.json; the app checks it in the background, downloads only the files that changed, verifies every hash and switches on the next start or reload. The installer's copy is the fallback and wins when newer.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
The level ignores lines on grass (pitch markings tilted by perspective) and only trusts near-level or near-plumb lines that agree; otherwise the photo is left as it is. The automatic crop puts the chest a little above the middle and the spare height above the subject, instead of the knees in the middle and a strip of pitch below.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW