Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 348 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 348 Bytes

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.