# tinypic-web

> A small library for compress the image

Latest version **1.0.1** (published 2019-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install tinypic-web
pnpm add tinypic-web
yarn add tinypic-web
bun add tinypic-web
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-09-30 |
| First published | 2019-09-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 224.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | lynnricemin |
| Maintainers | lynnricemin |
| Keywords | tinyimage;compress; |

## Links

- npm: https://www.npmjs.com/package/tinypic-web
- Repository: https://github.com/Rlynnricemin/Tinypic
- Homepage: https://github.com/Rlynnricemin/Tinypic#readme
- Issues: https://github.com/Rlynnricemin/Tinypic/issues
- npm.io page: https://npm.io/package/tinypic-web

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-09-30
- 1.0.0 — 2019-09-22

## README

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

PreView
--------------------------------------
<div align=center><img src="https://rlynnricemin.github.io/tinypic-web/example/viewpic.png" width="300" alt="demo"/></div>

Demo
--------------------------------------
[demo page](https://rlynnricemin.github.io/tinypic-web/example/index.html)

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

---
_Source: https://npm.io/package/tinypic-web · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
