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.