- Ignore range error when the image does not have correct Exif information
- Read orientation only when it is a JPEG image.
- Improve cropper instance storage to avoid side effect (#394).
- Fix parameter error of
Object.assignin iOS devices (#432). - Improve typed array loop for better performance (#435).
- Not to restrict the canvas position when it is not cropped.
- Fix wrong crop box size in view mode 1 and 2 (#381).
- Added 1 new option:
initialAspectRatio. - Improve the smoothness of crop box resizing.
- Check orientation only when both the
rotatableandscalableoptions are set totrue. - In case rounding off leads to extra 1px in right or bottom border we should round the top-left corner and the dimension (#343).
- Ensure the cloned image loads completely before trigger the
readyevent to avoid side effect (#303). - Add namespace to data attribute names (from
data-*todata-cropper-*) to avoid side effect (#319).
- Compute destination sizes with image's aspect ratio when draw image (#326).
- Improve event binding.
- Add missing
pivotdefinition tozoomTomethod (#320)
- Fix the bug of cropping image with orientation (#313).
- Add missing
widthandheightdefinitions (#302). - Fix incorrect behavior of
viewMode: 2(#304). - Fix the bug of multiple starts (#306).
- Remove
browserfield from thepackage.jsonfile (#307).
- Add type definition files for TypeScript.
- Enhance the
previewoption to supportArrayandNodeList. - Fix incorrect cropped canvas sizes when max/min sizes provided.
- Fix incorrect image natural sizes in iOS Safari (#279).
- Add
stylefield topackage.json. - Fix size error when load SVG image (#256).
- Allow to set the pivot of zoom (#144).
- Fixed a bug of rotation (#260).
- Fixed a bug of render when disable one of
rotatableandscalableoptions (#241).
- Normalize related decimal numbers when crop an image with canvas.
- Supports to load in node environment (#237).
- Fixed a bug of event binding (#238).
- Added 4 new options to
getCroppedCanvasmethod:minWidth,minHeight,maxWidthandmaxHeight. - Enhanced image scaling: the
scaleXandscaleYvalues should only be1or-1before, but now they can be any numbers. - Improved crop box resizing behavior in the northeast, northwest, southeast and southwest directions. (#222).
- Fixed a bug of zoom out after cleared the crop box in view mode 1, 2 and 3 (#209).
- Improve crop box resizing behavior in the east, west, south and north directions (#222).
- Added two new options (
imageSmoothingEnabledandimageSmoothingQuality) togetCroppedCanvasmethod. - Fixed a bug of RegExp using (#195 by @arusakov).
- Fixed the issue of canvas box initialization (#179).
- Change the
mainfield value fromdist/cropper.js(UMD) todist/cropper.common.js(CommonJS). - Added
moduleandbrowserfields topackage.json.
- Fixed the bug of touch zoom (#161).
- Fixed the bug of window resize (#162).
- Improve the
toggleDragModeOnDblclickoption (only available when thedragModeoption is set tocropormove)
- Fixed the bug of rotate square image lead image shrink (#155).
- Improved RegExps for DataURL processing (#156).
- Use CSS3 2D Transforms instead of
leftandtopfor better performance (#138). - Set
withCredentialsattribute when read the image data by XMLHttpRequest (#141).
- Supports to set an element for preview (#113).
- Improved event handler for Pointer Events (#127).
- Built JavaScript with Rollup.
- Build CSS with PostCSS.
- Fixed a bug of auto crop when replace the image (#83).
- Fixed the bug of cropping (#80).
- Fixed the bug of calling
readyevent twice when callreplacemethod (#81). - Fixed the bug of
getCroppedCanvaswhen setscalableorrotatabletofalse(#82).
- Removed
buildevent. - Renamed
builtevent toready. - Fixed the error of orientation transform.
- Ported code to ECMAScript 6.
- Fixed a bug of
data-*attributes setting and getting. - Fixed the calling order of
scaleandrotate.
- Improved the rotate and scale transform behavior.
- Improved the
getCroppedCanvasmethod (returns the whole canvas if it is not cropped). - Check cross origin setting when load image by XMLHTTPRequest.
- Supports 7 custom events:
build,built,cropstart,cropmove,cropend,cropandzoom. - The original callback options become shortcuts of these events now.
- IE8 is no longer supported after added these custom events.
- Added a new parameter to the
replacemethod for applying filters. - Improved the image initializing for Safari.
- Fixed incorrect size limitation of the crop box (#30).
- Fixed incorrect cropped canvas when scaleX or scaleY great than 1.
- Fixed crossOriginUrl undefined error when exists the
crossOriginproperty. - Fixed the issue in the "destroy" method (#24).
- Optimized tests.
- Fixed a dimension bug in the "getCroppedCanvas" method.
- Added an example for cropping round image.
- Supports to zoom from event triggering point.
- Limit wheel speed to prevent zoom too fast (#21)
- Improve the
setCropBoxDatamethod (#22)
- Fix event handlers
- Handle Data URL (avoid to use XMLHttpRequest to open a Data URL)
- Handle ajax error when load ArrayBuffer
- Not to transform the image to base64 when Orientation equals to
1 - Fix some typos
- Added a new option:
checkOrientation - Added a timestamp to the url of preview image
- Added a new option:
restore - Fixed #12: Added vendor prefixes to CSS
transform
- Floor the numerical parameters for
CanvasRenderingContext2D.drawImage
- Fixed #10: improve new crop box creating
- Fixed #7: reset the
crossOriginwhen call thereplacemethod
- Supports four view modes
- Supports three drag modes
- Makes the crop box's borders and handlers visible when overflow
- Added some examples
- Fixed some issues
- Added
viewMode - Added
dragMode - Renamed
touchDragZoomtozoomOnTouch - Renamed
mouseWheelZoomtozoomOnWheel - Renamed
doubleClickToggletotoggleDragModeOnDblclick - Renamed
checkImageOrigintocheckCrossOrigin - Removed
strict(supported byviewMode: 1) - Removed
dragCrop(supported bydragMode: 'crop')
- Fix the error jQuery reference on the
setCanvasDatamethod - Fix typo on the
destroymethod
- Added 5 new methods:
moveTo,zoomTo,rotateTo,scaleXandscaleY - Improved 4 methods:
move,zoom,rotateandgetCanvasData - Improved cropping
- Improved canvas limitation
- Improved crop box limitation
- Improved preview for cross origin image
- Supports touch (mobile)
- Supports zoom
- Supports rotation
- Supports scale (flip)
- Supports canvas
- Supports multiple croppers
- Cross-browser support
- Supports 37 options:
aspectRatio,data,preview,strict,responsive,checkImageOrigin,modal,guides,center,highlight,background,autoCrop,autoCropArea,dragCrop,movable,rotatable,scalable,zoomable,mouseWheelZoom,wheelZoomRatio,touchDragZoom,cropBoxMovable,cropBoxResizable,doubleClickToggle,minCanvasWidth,minCanvasHeight,minCropBoxWidth,minCropBoxHeight,minContainerWidth,minContainerHeight,build,built,cropstart,cropmove,cropend,crop,zoom. - Support 22 methods:
crop,reset,clear,replace,enable,disable,destroy,move,zoom,rotate,scale,getData,setData,getContainerData,getImageData,getCanvasData,setCanvasData,getCropBoxData,setCropBoxData,getCroppedCanvas,setAspectRatio,setDragMode.