Releases: Mawi137/ngx-image-cropper
Releases · Mawi137/ngx-image-cropper
9.0.0
In this release the image cropper now uses signals internally instead of relying on NgZone and ChangeDetectorRef to update the view. You will no longer be blocked by this component if you want to use Angular without zone.js.
As a result, the minimum Angular version was increased to 17.3.
8.1.0
8.0.0
7.2.0
7.0.0
BREAKING CHANGE: by default the output will be set to blob. Using blob instead of a base64 should decrease the memory usage. If you wish to keep using base64, simply add output="base64" to the <image-cropper> tag.
When using blob as output, an objectUrl will also be provided which can be used to preview the image. However, you'll need to use the DomSanitizer to allow that url to be used in the HTML of your component.
this.croppedImageUrl = this.sanitizer.bypassSecurityTrustUrl(event.objectUrl);
6.2.1
6.0.2
5.0.0
4.0.0
3.0.0
BREAKING CHANGES
- The input
outputTypehas been removed,imageCroppedoutput will no longer have afileproperty. This is because the Blob is actually created from the base64. Calling toBlob on a canvas is slow and affects the performance. Instead this package provides a method calledbase64ToFilewhich can be called to create a new Blob based on the base64 image. - The
rotateLeft,rotateRight,flipHorizontal,flipVerticalandresetImagemethods have been removed. TheimageCroppedoutput will no longer contain the transformations that were made. Instead there are 2 new inputs:canvasRotation: Rotates the entire canvas (1 = 90deg, 2 = 180 deg...)transform: This object can contain 4 values:rotate: Rotation in degrees. In contrast tocanvasRotation, this will rotate the image within the canvas.scale: Zoom in and out on the image (1 = normal size, 2 = 2x zoom)flipH: Flip horizontallyflipV: Flip vertically