Uploads: frame a photo before it goes (crop, zoom, position)

A photo field with a shape (crop: square for people, 16:9 for event
photos, covers and hero photos, the photo's own for block images and
schedule graphics) opens Frame the photo when a JPEG, PNG or WebP is
uploaded: drag or arrow keys to place it, a zoom slider, and a shape
menu. The framed part is drawn on a canvas and uploaded in place of
the original; Upload as is skips it. Logos, SVGs and GIFs go as they
are. No new dependency and nothing stored beside the picture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-06 16:21:26 -05:00
parent 034ad95b8a
commit 07be48d770
9 changed files with 298 additions and 10 deletions

View file

@ -38,7 +38,7 @@ export const people = {
full: true,
help: "One line shown in directories, eg. Vocals, piano · Gospel, folk",
},
{ path: "photo", label: "Photo", widget: "image", resolve: mediaUrl, full: true },
{ path: "photo", label: "Photo", widget: "image", crop: 1, resolve: mediaUrl, full: true },
{
path: "primary_org_id",
label: "Home organization",