Frame a picture before it is saved: a fixed window (square, round for avatars, wide for covers, or free with handles) over the picture, which you drag, zoom with the slider, wheel or a pinch, and turn a quarter at a time; it always covers the window, thirds lines show while you move it, and the arrow keys, + and โ and R do the same from the keyboard. cropImage turns the result into a file.
pnpm dlx shadcn@latest add "https://beamline.io/registry/open/image-cropper.json"