react-image-crop

A responsive image cropping tool for React

ISC License

Downloads
1.8M
Stars
3.8K
Committers
70
react-image-crop - 1.0.1

Published by DominicTobias about 8 years ago

Add option to specify crossorigin attribute #66

react-image-crop - v1.0.0

Published by DominicTobias about 8 years ago

  • dataUrls should not have a crossOrigin tag #63
  • Do not use this.props in constructor (fixes IE11 exception) #60
  • Make polygon IDs unique for multiple instances of the crop tool on the page
  • Make sure newWidth is properly clamped #54
  • Deprecate outputPixelUnits (callbacks receive pixel crop as last arg now)
react-image-crop - Release Candidate 8

Published by DominicTobias about 8 years ago

Add outputPixelUnits option to output units in pixels #53

react-image-crop - Release Candidate 7

Published by DominicTobias about 8 years ago

  • Add maxWidth and minWidth optional props

PR #51 @Deepblue129

  • Lack of CORS support was bringing up the error "tainted canvas" when drawing and using toDataUrl with canvas
    Mobile fixes:
  • Allow scrolling when crop is disabled
  • Disable scrolling when crop is being dragged
  • Fix onImageLoad for Safari (naturalWidth sometimes 0)
react-image-crop - Release Candidate 6

Published by DominicTobias about 8 years ago

Add option to draw crop as an ellipse #50

react-image-crop - Release Candidate 5

Published by DominicTobias over 8 years ago

Fixes issue #48 with non-es6 imports being an object with default (regression)

react-image-crop - Release Candidate 4

Published by DominicTobias over 8 years ago

  • Fixes disappearing crop if parent state changes and no crop is passed #40
  • Add disabled prop
  • Tech: Move to building release with webpack. Minor dependency updates.
react-image-crop - Release Candidate 3

Published by DominicTobias over 8 years ago

Set whether the crop is valid or not on component updates. Fixes #36

react-image-crop - 1.0.0-rc2

Published by DominicTobias over 8 years ago

  • Ensure correct aspect ratio on re-renders
  • Tweak to npm scripts so that development of either JS or SCSS only require npm start
react-image-crop -

Published by DominicTobias over 8 years ago

Update to React v15, which has full support for SVG meaning we can get rid of dangerouslySetInnerHtml and thus improve performance for non-webkit browsers.

Change to ES6 classes.

Add max-width: 100% to container or else the image can still extend beyond the container bounds in Firefox.

react-image-crop - Fix issue with <babel5

Published by DominicTobias over 8 years ago

The fix in 0.1.8 caused an issue due to the use of import with babel <5 (#29). Using babel-plugin-add-module-exports plugin to export the default for CommonJS fixes this issue.

react-image-crop - Workaround for babel6 exporting module under "default" for CommonJS

Published by DominicTobias over 8 years ago

#28

react-image-crop - Fix an issue with the previous patch

Published by DominicTobias over 8 years ago

react-image-crop - Fix inability to select new crop in some browser versions

Published by DominicTobias over 8 years ago

react-image-crop - Only use props when creating crop state object

Published by DominicTobias over 8 years ago

Fixes #24

react-image-crop - Add pre-commit build hook & build the project

Published by DominicTobias over 8 years ago

Build was missed in the last 2 patch versions, I've added a pre-commit hook to stop this happening until a CI is in place (someday..)

react-image-crop - Max-width 100% and extra param for onImageLoaded

Published by DominicTobias over 8 years ago

It was non-obvious that .ReactCrop--image-copy also needed max-width set as seen in #21. Also by providing the image DOM element to onImageLoaded the user could use the image dimensions to decide on an optimum crop (e.g. depending on landscape vs portrait)

react-image-crop - Firefox compatibility update

Published by DominicTobias over 8 years ago

  • Make crop darkened background work on Firefox (FF doesn't support clip-path: inset)
  • Use object-assign package and declare it as a peerDependency