Releases: Mawi137/ngx-image-cropper
Releases · Mawi137/ngx-image-cropper
1.4.1
1.3.4
1.3.0
- Added
cropperReady
output. If you wish to overwrite the cropper position, you should wait till after this event was fired. It also fixes issues with the cropper not initialising properly (e.g. in a animating modal) - Added
imagePosition
to theimageCropped
output. These are the coordinates of the cropper relative to the original image's size
NOTE: When the
imageLoaded
event is fired, the image becomes visible in the cropper and you should make sure the image cropper becomes visible. However, that doesn't always mean that the cropper itself is ready, thecropperReady
notifies you when it is, so you can overwrite the cropper's position for example.
1.2.0
- Added
outputType
option which allows you to choose betweenbase64
,file
andboth
. You may not need the file to be emitted, with this option it can be disabled and it will speed up the cropping significantly. (Defaults toboth
to avoid breaking changes). - Added
autoCrop
option. By default a new image is emitted each time the cropper's position or size is changed. By setting this option to false, you'll need to call thecrop
method yourself. To get access to the cropper use:@ViewChild(ImageCropperComponent) imageCropper: ImageCropperComponent
. Then to trigger the cropper call:imageCropper.crop();
and the cropped image will be emitted by the Outputs.
1.1.0
- New output
imageCropped
that emits both the base64 and file as well as the cropped image height & width and the cropper's position (more in the readme.md) - Deprecated
imageCroppedBase64
andimageCroppedFile
- Reset the cropper when changing the
aspectRatio
dynamically