Free
Pro

Image Cropper

A mobile-ready image cropper component built for high performance and usability, allowing users to upload, zoom, rotate, and crop images.

Pro

Image Cropper — part of Ply Pro

Unlock it plus 90 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.

Unlock Pro

Live Demo

Select an image to see the cropper in action.

Upload an image

Select an image to see the cropper in action.

No file chosen
Upload image

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add crop-image

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add crop-image
// Paths are relative to aliases.components (default: src/app/components)
import { CropImageComponent } from './crop-image/crop-image.component';

@Component({
  selector: 'app-your-component',
  imports: [
    CropImageComponent
  ],
  template: `...`
})
export class YourComponent {}

API for crop-image — generated from JSDoc in the library source.

API reference for crop-image
APIMemberTypeDefaultDescription
ply-crop-imageimageFileFile | undefinedundefinedFile object from ply-file-upload or programmatic use
ply-crop-imageimageChangedEventEvent | nullnullNative file input change event (alternative to imageFile)
ply-crop-imagemaintainAspectRatiobooleantrueThe maintainAspectRatio input property.
ply-crop-imageaspectRationumber1The aspectRatio input property.
ply-crop-imagehideIfEmptybooleantrueThe hideIfEmpty input property.
ply-crop-imagecropperHeightunknown'400px'Height of the crop viewport (CSS value). Width auto-calculates from aspect ratio.
ply-crop-image(cropped)Blob | nullThe cropped output property.
ply-crop-image(canceled)voidThe canceled output property.