2.0.1 • Published 2 years ago

imgzipper v2.0.1

Weekly downloads
51
License
-
Repository
-
Last release
2 years ago

imgzipper

Usage

import Imgzipper from 'Impzipper'

Impzipper({
    file: File, // File类型的图片源(必选)
    callback: (blob,url)=>{do something} // 用于接收处理后返回的图片(必选),传入blob和base64两种类型
	scale: number, //缩放系数,默认为1
	quality: number, //质量系数,默认为0.82
	exif: boolean, //是否进行拍摄方向校正,默认为true
	type: string, //转换后的图片格式,默认为'image/jpeg'
	width: number, //转换后的宽度,不设置高度时将保持原比例
	height: number, //转换后的高度,不设置宽度时将保持原比例
	callbackParameter: any, //设置callback函数的额外参数
})

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

2.0.1

2 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago