- Fixed a bug of
data-*
attributes setting and getting. - Fixed the calling order of
scale
androtate
.
- Improved the rotate and scale transform behaviour.
- Improved the
getCroppedCanvas
method (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
,crop
andzoom
. - 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
replace
method 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
crossOrigin
property. - 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
setCropBoxData
method (#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
crossOrigin
when call thereplace
method
- 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
touchDragZoom
tozoomOnTouch
- Renamed
mouseWheelZoom
tozoomOnWheel
- Renamed
doubleClickToggle
totoggleDragModeOnDblclick
- Renamed
checkImageOrigin
tocheckCrossOrigin
- Removed
strict
(supported byviewMode: 1
) - Removed
dragCrop
(supported bydragMode: 'crop'
)
- Fix the error jQuery reference on the
setCanvasData
method - Fix typo on the
destroy
method
- Added 5 new methods:
moveTo
,zoomTo
,rotateTo
,scaleX
andscaleY
- Improved 4 methods:
move
,zoom
,rotate
andgetCanvasData
- 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
.