img-compressor-js

1.0.1 • Public • Published

img-compressor-js

img-compressor-js is a simple image compression library for web applications. It provides an easy-to-use interface for reducing the size of images, which is particularly useful for optimizing images for better web performance before uploading to a server.

Features

  • Compress images using browser-side JavaScript.
  • Customize the maximum dimensions and quality of the output image.
  • Return a compressed image as a File object and its previewUrl for immediate display.

Installation

Install img-compressor-js using npm:

npm install img-compressor-js --save

Package Sidebar

Install

npm i img-compressor-js

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.62 kB

Total Files

4

Last publish

Collaborators

  • andresousa3