Skip to content

3.0.0

Compare
Choose a tag to compare
@Mawi137 Mawi137 released this 20 Jan 20:28
· 267 commits to master since this release
e6d0e75

BREAKING CHANGES

  • The input outputType has been removed, imageCropped output will no longer have a file 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 called base64ToFile which can be called to create a new Blob based on the base64 image.
  • The rotateLeft, rotateRight, flipHorizontal, flipVertical and resetImage methods have been removed. The imageCropped 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 to canvasRotation, this will rotate the image within the canvas.
      • scale: Zoom in and out on the image (1 = normal size, 2 = 2x zoom)
      • flipH: Flip horizontally
      • flipV: Flip vertically