- Fixed an issue where cropit exports blank images on Safari. Removed progressive resizing, which may degrade cropped image quality. For high quality resizing, using a server-side tool is recommended.
- Added getters and setters for
initialZoom
,exportZoom
,minZoom
andmaxZoom
- Added
onOffsetChange
andonZoomChange
callback - onFileChange now passes back the event object
- Fixed bug where
image-loaded
class is removed if a small image is loaded and rejected
- Fixed crossOrigin preventing image from loading in Safari and Firefox.
- Added option to allow small image to be either zoomed down its original size or stretch to fill/fit container
- Replaced
rejectSmallImage
option withsmallImage
.rejectSmallImage: true
is nowsmallImage: 'reject'
, andrejectSmallImage: false
is nowsmallImage: 'allow'
.
- Added back
allowCrossOrigin
option
- Fixed jQuery import in AMD and CommonJS.
- Center image when uploaded
- Added
maxZoom
,minZoom
,initialZoom
options - Added
rejectSmallImage
option- By default if image is smaller than preview, it won't be loaded and the old image would be preserved
- Added
onFileReaderError
callback
- Removed
allowCrossOrigin
option
- Major refactor -- rewrote in ES6! No more CoffeeScript.
- Now build with Webpack and removed Grunt
- Added drag & drop support via
allowDragNDrop
option, default to true - Added free move support via
freeMove
option, default to false - Added CommonJS support
- Renamed option
freeImageMove
->freeMove
- Added touch support
- Added disable and reenable APIs
- Support varying backgroung image border size
- Added white background in jpeg format exports