Skip to content

VICTORYGS/PictureScale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PictureScale

Usage

let ins=new PictureScale();
ins.init('input[type=file]',0.1)
// get Image base64
ins.imgBase64
// get Image webp base64
ins.webpBase64
// download picture
ins.download()

API

init(selector,[scale=0.5])

selector

Type: string

selector of html's tag.

scale

Type: number

Scale the image.

About

基于canvas的图片缩放插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published