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

@ -188,6 +188,7 @@ export const featuredCardsChild = {
path: "image",
label: "Image",
widget: "image",
crop: "free",
resolve: mediaUrl,
full: true,
frameFrom: "url",
@ -403,6 +404,7 @@ export const blocksChild = {
path: "media",
label: "Image",
widget: "image",
crop: "free",
resolve: mediaUrl,
full: true,
when: { path: "type", value: ["image", "video"] },
@ -495,6 +497,7 @@ export const blocksChild = {
path: "media",
label: "Picture",
widget: "image",
crop: 16 / 9,
resolve: mediaUrl,
full: true,
help: "Optional. Default: none, the card is text only.",
@ -512,6 +515,7 @@ export const blocksChild = {
path: "media",
label: "Graphic",
widget: "image",
crop: "free",
resolve: mediaUrl,
full: true,
help: "Optional, in the fold-out: a map of the site, a slide, a poster",
@ -535,6 +539,7 @@ export const blocksChild = {
path: "map_image",
label: "Map image",
widget: "image",
crop: "free",
resolve: mediaUrl,
full: true,
help: "Optional: your own map, eg. the camp with the room marked. Shown in the fold-out in place of the Google map (which stays a link), and as a slide when the schedule is presented.",