New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browser-image-compression

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-image-compression - npm Package Versions

23

2.0.2

Diff

Changelog

Source

2.0.2 (6 Mar 2023)

  • fixed: node version restriction #185
donaldcwl
published 2.0.1 •

Changelog

Source

2.0.1 (6 Mar 2023)

  • feature: preserve Exif metadata for JPEG #164
  • feature: support BMP image compression #181
  • optimized: solved error in sensible CSP environment #106
  • optimized: increase initial PNG color depth to improve output quality #180
  • fixed: circular dependency #34
  • fixed: export Options interface #157
  • fixed: black image output on iOS devices #169, #165, #166
donaldcwl
published 2.0.0 •

Changelog

Source

v2.0.0 (13 Apr 2022)

  • feature: example html - added CSS animation for showing main thread status
  • feature: example html - added version switch
  • feature: support AbortController (abort / cancel during compression) #101
  • feature: options.alwaysKeepResolution (default: false) - keep the resolution (width and height) during compression and reduce the quality only (note that options.maxWidthOrHeight is still applied if set) #127
  • fixed: Main thread is blocked on Mac device for options.useWebWorker=true #139
  • updated: dropped core-js to reduce bundle size #138
  • updated: options.useWebWorker default set to true
donaldcwl
published 1.0.17 •

Changelog

Source

v1.0.17 (15 Nov 2021)

  • feature: apply white background to transparent PNG > JPG conversion if options.fileType is image/jpeg or image/jpg #119
  • fixed: Fixed image cropped on Safari #118
donaldcwl
published 1.0.16 •

Changelog

Source

v1.0.16 (26 Sep 2021)

  • fixed: Fixed output white picture on iOS Safari for large image because of canvas max size #116
  • fixed: Fixed wrong image orientation on iOS device #118
  • feature: set white background for transparent png file with jpeg file extension #119
donaldcwl
published 1.0.15 •

Changelog

Source

v1.0.15 (12 Aug 2021)

  • fixed: Fixed black Images and type error by considering Canvas maximum size supported by different browsers #84, #36
  • fixed: IE compatibility, include polyfill with core-js@3 e.g, globalThis, Promise #108, #110
  • fixed: Test suites in few projects may have error, added extra checking on whether File and FileReader exist in the Window object #92
  • fixed: issue with export causing compile error in typescript project #63
donaldcwl
published 1.0.14 •

Changelog

Source

v1.0.14 (6 Jan 2021)

  • updated: use UZIP to compress PNG image instead of Canvas
  • fixed: PNG transparent background become black after compression #84, #76
  • fixed: progress jump back to 0 when Web Worker failback to main thread #90
donaldcwl
published 1.0.13 •

Changelog

Source

v1.0.13 (8 Nov 2020)

  • added: new option for setting initial quality level #64, #78
  • fixed: options object being altered by the compress func #71
  • fixed: issue with output size of png compression #57
donaldcwl
published 1.0.12 •

Changelog

Source

v1.0.12 (4 Jun 2020)

  • fixed: issue with SSR #58
donaldcwl
published 1.0.11 •

Changelog

Source

v1.0.11 (8 May 2020)

  • fixed: issue with IE support #38 #23
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc