tinypic-web

1.0.1 • Public • Published

Tinypic—— 图片压缩工具

A small library for compress the image web 图片压缩插件,支持png与jpg格式的图片压缩,配置限制上传的图片大小,可获得File或者base64格式的图片

PreView

demo

Demo

demo page

Install

npm install tinypic-web --save

How to Use

new TinyPic({
  file: new File(),
  type: 'file', // file or base64
  limitsize: 100 * 1024, // 允许上传的文件大小
  callback: function(file) {
    return file
  }
})

Readme

Keywords

Package Sidebar

Install

npm i tinypic-web

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

229 kB

Total Files

8

Last publish

Collaborators

  • lynnricemin