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";
/** With no picture yet, the cropper holds its place and says it is loading. */
export default function ImageCropperLoading() {
return <ImageCropper src="" height={260} className="w-full max-w-md" />;
}








