3.0.0
BREAKING CHANGES
- The input
outputType
has been removed,imageCropped
output will no longer have afile
property. 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 calledbase64ToFile
which can be called to create a new Blob based on the base64 image. - The
rotateLeft
,rotateRight
,flipHorizontal
,flipVertical
andresetImage
methods have been removed. TheimageCropped
output 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