zriz is an image cropper for React. You put it in an upload flow, and people straighten, rotate and crop their photo before your app saves it.
It feels like the crop tool in iOS Photos: a dial to straighten, pinch to zoom, handles that spring back, and two fingers can drag two corners at once.
Straighten with a dial, up to 45° each way. The photo zooms just enough that no corner is ever empty.
Rotate by quarter turns and flip.
Free crop with corner and edge handles, or a locked aspect ratio.
Circle crop for avatars.
Pinch, wheel and trackpad zoom, drag to move.
Export PNG, JPEG or WebP in the browser, or crop the original on your server.
Keyboard control on every part and screen reader announcements.
It is headless. You get the parts (viewport, crop area, handles, dial, zoom) and style them yourself, or start from the default stylesheet. Zero dependencies, React 18 and 19, and the core works without React too.
MIT licensed.
Built with