react-image-crop

A responsive image cropping tool for React

ISC License

Downloads
1.8M
Stars
3.8K
Committers
70
react-image-crop - 11.0.5 Latest Release

Published by sekoyo 9 months ago

  • Fix css v11 regression when users are allowed to click off the crop to remove it #575
react-image-crop - 11.0.3 + 11.0.4

Published by sekoyo 10 months ago

No changes in these releases, it's just to update some NPM info

react-image-crop - 11.0.2

Published by sekoyo 10 months ago

  • Fix regression in v11 when using multiple crop instances #572
react-image-crop - 11.0.1

Published by DominicTobias 11 months ago

  • Add overflow: hidden to the image wrapper so that scaling and rotating doesn't overflow the component since removing overflow: hidden from the component itself
react-image-crop - 11.0.0

Published by DominicTobias 11 months ago

Not a breaking change for most users, but the way crop shadow is done is significantly different, and hopefully solves two problems while not introducing others 🙏:

  • fix: crop shadow on circular crop not working in Safari
  • improve: component no longer has overflow: hidden applied, which makes some kinds of customization easier. Also the crop handles now overflow the container instead of getting cut off:

Breaking change for users of SASS variables:

  • Variables are now done with CSS Variables. They are as follows:
:root {
  --rc-drag-handle-size: 12px;
  --rc-drag-handle-mobile-size: 24px;
  --rc-drag-bar-size: 6px; /* The invisible grip size of the crop selection edges */
  --rc-drag-handle-background-colour: rgba(0, 0, 0, 0.2);
  --rc-border-color: rgba(255, 255, 255, 0.7);
  --rc-focus-color: #0088ff;
}
react-image-crop - 10.1.8

Published by DominicTobias about 1 year ago

  • Fix a regression determining the min dimension to use when crop is set to aspect
react-image-crop - 10.1.7

Published by DominicTobias about 1 year ago

  • Fix 10.1.6 regression when only minWidth or minHeight is set and crop is resized to inverse
  • Ensure new min-dimension crop is always in bounds as its being drawn
react-image-crop - 10.1.6

Published by DominicTobias about 1 year ago

  • Fix issue when using minWidth/minHeight where crop can flip over and go out of bounds #554

264620483-3c143e4e-94ca-46e7-b516-d66ccade4ede

react-image-crop - 10.1.5

Published by DominicTobias over 1 year ago

  • Disable animated marching ant border for circular crops as it wasn't working properly
react-image-crop - 10.1.4

Published by DominicTobias over 1 year ago

  • Add back animated marching ants to crop selection as seen on the README. If you wish to disable the animation then pass className="ReactCrop--no-animate"
react-image-crop - 10.1.3

Published by DominicTobias over 1 year ago

  • Add ./src/ReactCrop.scss to package.json exports
react-image-crop - 10.1.2

Published by DominicTobias over 1 year ago

  • Output ES build as well as UMD
react-image-crop - 10.0.11

Published by DominicTobias over 1 year ago

  • Revert previous change, it wasn't working properly
react-image-crop - 10.0.10

Published by DominicTobias over 1 year ago

  • Change how crop selection shadow is done so that there's no need for overflow:hidden on ReactCrop div element. Fixes #530

Don't use this version it introduced a bug and was deprecated

react-image-crop - 10.0.9

Published by DominicTobias almost 2 years ago

  • Can touch scroll on the crop when disabled is true
react-image-crop - 10.0.8

Published by DominicTobias about 2 years ago

  • Fix usage with Preact #509. Thanks to @kane-c
react-image-crop - 10.0.7

Published by DominicTobias about 2 years ago

  • Infer correct output type (PixelCrop or PercentCrop) depending on input in makeAspectCrop and centerCrop (thanks: @corymharper)
  • Fix minWidth/minHeight for aspect crops when one or the other wasn't specified
react-image-crop - 10.0.6

Published by DominicTobias about 2 years ago

  • Fix key press issue when controlling crop with keyboard #503 (thanks: @mskelton)
  • Better aria labels for crop handles (thanks: @mskelton)
react-image-crop - 10.0.5

Published by DominicTobias about 2 years ago

  • Fixes a small jump that occurs when resizing a drag handle not exactly from the corner of the crop #502
react-image-crop - 10.0.4

Published by DominicTobias over 2 years ago

  • A slightly modified and improved fix for #491 as it wasn't fixed for horizontal edges