changelogs.md


xkeshi/image-compressor

Repository  -  API  -  Source

1.1.0

February 23, 2018
  • Add 2 new options: beforeDraw and drew.

1.0.0

January 15, 2018
  • Publish to NPM with a new name: image-compressor.js.

0.5.3

December 29, 2017
  • Improve the conditions for returning original file when the result size greater then original one.

0.5.2

September 30, 2017
  • Improve browser compatibility for orientation checking.

0.5.1

September 21, 2017
  • Fix rotation error when the orientation value is 8 (rotated -90 degrees).

0.5.0

September 20, 2017
  • Add new option checkOrientation for rotating or flipping an image with its Exif Orientation information (#10).
  • BREAKING CHANGE: Publish to NPM with scoped name (@xkeshi/image-compressor).

0.4.0

August 1, 2017
  • Add 4 new options: maxWidth, maxHeight, minWidth and minHeight.
  • Override the default fill color (#000, black) with #fff (white) if the output image is JPEG.
  • Convert the output file name's extension to match its type.

0.3.0

July 31, 2017
  • Add 2 new options: mimeType and convertSize (#2).
  • If the result is greater than original one, but the width or height options is also set, then not to return original one (#2).
  • Return original image file if the result is null in some cases.
  • Add last modified date to output File object.

0.2.0

July 26, 2017
  • Return original image file if the result is greater than it.

0.1.0

July 25, 2017
  • Support to compress image File or Blob object.
  • Support 5 options: width, height, quality, success and error.