0.1.6 • Published 1 year ago

@clefayomide/image-resizer v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

supported node versions license: MIT

Getting started

Installation

This package can be installed using npm

npm i @clefayomide/image-resizer

or, yarn

yarn add @clefayomide/image-resizer

Usage

Import image_resize

import { image_resize } from '@clefayomide/image-resizer';

Wrapping things up

const file = e.target.files[0];
image_resize(file, 500)
  .then(res => {
    // perform an action with the resized file, such as sending to server
  })
  .catch(err => console.error(err));

Arguments

Available props:

ArgumentDescriptiontype
filethe file to be resizedFile
widththe required width for the new filenumber

Issues

If any issues are found, they can be reported here.

License

This project is licensed under the MIT license.

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago