About
A fixed-frame image cropper where the picture moves under a still frame via drag, wheel/pinch/slider zoom, quarter-turn rotation and a straighten slider, exporting the crop to a canvas file — for profile pictures, avatars and any fixed-aspect upload.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Image Cropper to your project and fits it to your theme.
Code
How Image Cropper is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ImageCropper } from "@/components/ui/image-cropper";
/** A picture that is not a picture: the cropper says so and offers another try. */
export default function ImageCropperError() {
return (
<ImageCropper
src="data:image/png;base64,bm90IGFuIGltYWdl"
height={260}
className="w-full max-w-md"
/>
);
}








