Skip to content

Releases: Donaldcwl/browser-image-compression

v1.0.10

07 May 10:30
Compare
Choose a tag to compare
  • fixed: issue in Web Worker when onProgress is undefined #50
  • fixed: handle behavior change of exif orientation in iOS 13.4.1 and Safari 13.1 Desktop #52
  • updated: typescript type definitions to resolve #54

v1.0.9

25 Mar 15:50
Compare
Choose a tag to compare
  • updated: compression becomes less aggressive, output file is closer to the 'maxWidthOrHeight' and/or 'maxSizeMB' in config
  • fixed: file size increased in specific situation

v1.0.8

16 Mar 09:28
Compare
Choose a tag to compare
  • added: support for Server Side Rendering (SSR)
  • updated: ts type file

v1.0.7

16 Mar 05:09
Compare
Choose a tag to compare
  • add onProgress function in options for compression progress updates
  • allow fileType override
  • fix garbage clean canvas for safari
  • fix issue in Cordova support
  • fix issue in IE browser
  • fix other issues
  • useWebWorker default set to false
  • add ts type file

v1.0.6

05 Jul 04:43
Compare
Choose a tag to compare
  • fixed: exif orientation do not work in some situations

v1.0.5

31 May 19:28
Compare
Choose a tag to compare
  • added: support for cordova project that uses cordova-plugin-file
  • optimized: follow image exif orientation even though image do not required to compress or resize
  • fixed: error may throw on iPhone Safari because of OffscreenCanvas cannot get 2d context
  • fixed: exif orientation do not work in some situation

v1.0.2

08 Apr 14:01
Compare
Choose a tag to compare

fixing bug related to image orientation and squeezing

v1.0.1

08 Mar 09:43
Compare
Choose a tag to compare

fixing bug related to wrong image output resolution in some cases

v1.0.0

06 Feb 07:52
Compare
Choose a tag to compare
  • breaking change: change "imageCompression" function signature
  • use of OffscreenCanvas when support, fallback to document.createElement('canvas')
  • use createImageBitmap when support, fallback to FileReader readAsDataURL
  • add web worker support
  • follows image exif orientation

v0.0.4

30 Jan 13:47
Compare
Choose a tag to compare
update example