2.0.2 • Published 2 years ago

upload-images-converter v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago