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