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);