# tinify-image

> > It's npm tool based on https://tinypng.com API which allows you easier to compress you images.

Latest version **1.0.0** (published 2016-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install tinify-image
pnpm add tinify-image
yarn add tinify-image
bun add tinify-image
```

Provides the command `tinify-image`.

## 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.0 |
| Published | 2016-08-17 |
| First published | 2016-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 华续 |
| Maintainers | huaxu |
| Keywords | image, tinify, tinypng |

## Links

- npm: https://www.npmjs.com/package/tinify-image
- Repository: https://github.com/yolo2013/tinify-image
- Homepage: https://github.com/yolo2013/tinify-image#readme
- Issues: https://github.com/yolo2013/tinify-image/issues
- npm.io page: https://npm.io/package/tinify-image

## Dependencies (3)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [tinify](https://npm.io/package/tinify.md) ^1.3.0
- [commander](https://npm.io/package/commander.md) ^2.9.0

## 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.0 (latest) — 2016-08-17

## README

# tinify-image
> It's npm tool based on https://tinypng.com API which allows you easier to compress you images.

##Installation
    $ npm install -g tinify-image

##Quick Start

### Setup API Key

You can get your API key from [https://tinypng.com/developers](https://tinypng.com/developers). And then

    $ tinify-image setKey 'Your API Key'

### Compress Image

By default, source folder will be **source**, output folder will be **output**. So you can just run ```tinify-image``` on this condition.

    $ tinify-image -s 'SourceImageFolder' -o 'OutputImageFolder'

###Get Count

Get info about how much images **the API key** already optimized this month.

    $ tinify-image count

> Note: you have 500 images per month to optimize for free, you have to pay https://tinypng.com to get more images optimized per 1 month.

##Links

[https://tinypng.com/](https://tinypng.com/)
[https://github.com/DarthMarcius/img-tinify](https://github.com/DarthMarcius/img-tinify)

##License
  
MIT

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