Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
})

About

A small library for compress the image

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages