2.0.2 • Published 9 months ago

upload-images-converter v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Options

Default options

Custom options example

imageConvert(value.target.files, 750, 450, "image/jpeg", true)
.then((files) => ...);

How to use, example:

import { imageConverter } from "upload-images-converter";

// ... code before
<input
    accept="image/*"
    type="file"
    name="file"
    multiple
    onChange={(value) => {
      imageConvert(value.target.files) // Options: FileList, Width, Height, MIMO format (string), false
          .then(files => {
              // ... do something with new images ...
          });
    }
/>
// ... code after

alt text


2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago