0.0.7 • Published 4 years ago

image-handler v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

NPM

Installation

npm i image-handler

Usage

compressImage(OBJECT)

import imgHandler from 'image-handler'

imgHandler.compressImage(file, quality, maxSize)

Params descript

Callback description

return a Promise Object

<Promise>.then((file) => {

 // file: after compressing file object

})

fileToUrl(OBJECT)

import imgHandler from 'image-handler'

imgHandler.fileToUrl(file)

Params descript

Callback description

return a local file url

// example: blob:null/34fd9c5a-fe01-4811-8154-e91858e323c9

<img src="blob:null/34fd9c5a-fe01-4811-8154-e91858e323c9">
0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago