1.3.0 - 2026-07-05
enableRotateoption: when set totrue, rotate buttons are shown allowing the image to be rotated in 90° increments.rotate()method to programmatically rotate the image by a multiple of 90°. Can be used regardless of whetherenableRotateis set (#14).
- When
enableResizeistrue, binding an image without passing state auto-fits the crop viewport to the image's aspect ratio so the full image can be saved by default (#13).
1.2.2 - 2026-05-10
bind()is now declaredasync(it already returned a Promise, so this does not affect usage).
- Viewport was not reset to its configured dimensions when binding a new image without restoring saved state.
- Max zoom was incorrectly reduced when only one viewport dimension was resized.
1.2.1 - 2026-05-08
- Improved min/max zoom limits when the viewport is resized.
- Expanded readme with examples for binding from a file input and uploading the cropped image.
1.2.0 - 2026-05-07
- Support for dragging at the same time as pinch zooming.
- CSS progress spinner while loading a bound image.
enableResizenow allows resizing both width and height simultaneously, with a minimum size so the viewport can always be dragged.- Improved zoom speed on touchpads.
- Optimized image dragging and centering for smoother rendering.
- Laggy/jumpy pinch zooming in Firefox (caused by https://bugzil.la/1729465).
- Broken image icon appearing before an image was bound (#7).
1.1.1 - 2026-04-30
enableResizeoption: when set totrue, resize handles are shown on the viewport edges allowing the user to adjust its size (#9).CroptStateinterface with fieldsx,y,zoom,width, andheightrepresenting a saved crop state.getState()method to retrieve the current crop state.bind()now accepts aCroptStateobject as its second argument to restore zoom, position, and viewport dimensions (#3, #10). Passing a number is still supported for backwards compatibility.
- Refreshed demo site to demonstrate the
enableResizeoption and saving/restoring crop state.
Note
Version 1.1.0 was skipped due to a bug with resize handle touchscreen behavior.
1.0.2 - 2026-01-16
- Incorrect step value for range input.
1.0.1 - 2026-01-13
- Janky zoom behavior caused by incorrect center point calculation (#6).
- Zooming out all the way now works as expected with large images (#6).
- Zoom limit now auto-updates when dynamically changing the viewport size.
1.0.0 - 2024-12-01
- Replaced
viewport.typeoption withviewport.borderRadius. This option takes a string containing a CSS length or percentage, and defaults to"0px". To upgrade code that used the"circle"viewport type, instead set the border radius to"50%".
0.9.1 - 2024-11-07
- Removed unnecessary variables.
- Code is now formatted with Prettier.
0.9.0 - 2024-10-23
- Cropt now clamps image drags to the viewport boundary, rather than ignoring the delta if it would go past the boundary. This fixes unexpected gaps between the image and viewport edges. (#5).
0.8.9 - 2024-06-26
- Image content is no longer doubled when resizing a large image with transparency (#1).
0.8.8 - 2023-11-21
- Correctly handle uncached pointer move events.
- Resolves janky behavior in Safari when a pinch zoom is initiated with one pointer outside the preview image.
- Slightly increased default boundary and viewport size.
0.8.6 - 2023-11-14
- For browsers that don't support WebP output (Safari), fall back to JPEG instead of PNG when
quality < 1to avoid unexpectedly large files.
0.8.4 - 2023-11-12
This is the initial pre-release after forking from Foliotek/Croppie v2.6.5.
zoomerInputClassoption to customize the range input class.- TypeScript type definitions are now included.
setOptions()method to dynamically change options on a Cropt instance.
- Ability to move and zoom viewport via the keyboard.
- Broken transform state when zooming while dragging (including image getting stuck outside viewport).
- No longer depends on Exif.js library.
- Published as a native ES module.
- Rewrote image scaling algorithm for higher quality results.
- Replaced
result()method with separatetoCanvas()andtoBlob()methods. - Default format for
toBlobis now"image/webp". - Migrated from deprecated
mousewheelandDOMMouseScrollevents to standardwheelevents. - Unified handling of mouse/touch dragging and pinch zooming via pointer events.
mouseWheelZoomoption is now consistently a string.
- jQuery API and legacy polyfills.
- Option to set crop points when calling
bind()(set zoom instead). updatecallback and events.get()method.- Option to output cropped image as a circle shape with a white background.
- Unnecessary
customClassoption (set directly on the bound element instead). - Experimental
enforceBoundaryoption (boundaries are always enforced now). enableOrientationoption.enableZoomoption (zooming is always enabled now, though mouse wheel behavior can be customized).boundarywidth/height options (customize via CSS instead).enableResizeoption.showZoomeroption (hide via CSS instead if desired).