RE

React Easy Crop

react-easy-crop

A React component to crop images/videos with easy interactions

Utilities
react
crop
cropper
image crop
react-easy-crop
Utilities
javascript
npm
frontend
open source
Stars
2.8k
Weekly
3.0M
Open issues
5
Bundle
~25 kB

Installation

npm install react-easy-crop

Code example

import { useEasyCrop } from "react-easy-crop";

export function Example() {
  const value = useEasyCrop();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by Valentin Hervieu
  • 3.0M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 5 open issues on GitHub

FAQs

Alternatives & similar libraries