Metadata-Version: 2.1
Name: pyimagecompressor
Version: 0.1.0
Summary: ImageCompressor: Image compressors written by pure python.
Home-page: https://github.com/CharlesPikachu/imagecompressor
Author: Zhenchao Jin
Author-email: charlesblwx@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opencv-python
Requires-Dist: numpy
Requires-Dist: tqdm
Requires-Dist: pillow
Requires-Dist: scipy

<div align="center">
  <img src="./docs/logo.png" width="600"/>
</div>
<br />

[![docs](https://img.shields.io/badge/docs-latest-blue)](https://imagecompressor.readthedocs.io/zh/latest/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/imagecompressor)](https://pypi.org/project/imagecompressor/)
[![PyPI](https://img.shields.io/pypi/v/imagecompressor)](https://pypi.org/project/imagecompressor)
[![license](https://img.shields.io/github/license/CharlesPikachu/imagecompressor.svg)](https://github.com/CharlesPikachu/imagecompressor/blob/master/LICENSE)
[![PyPI - Downloads](https://pepy.tech/badge/imagecompressor)](https://pypi.org/project/imagecompressor/)
[![issue resolution](https://isitmaintained.com/badge/resolution/CharlesPikachu/imagecompressor.svg)](https://github.com/CharlesPikachu/imagecompressor/issues)
[![open issues](https://isitmaintained.com/badge/open/CharlesPikachu/imagecompressor.svg)](https://github.com/CharlesPikachu/imagecompressor/issues)

Documents: https://imagecompressor.readthedocs.io/zh/latest/


# ImageCompressor
```
Image compressors written by pure python.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.
```


# Support List
|   Compressor         |      Paper                                          | Introduction                                                  | Core Code                                                | In Chinese                    |
|   :----:             |      :----:                                         | :----:                                                        | :----:                                                   | :----:                        |
|   pil                |      N/A                                            | [click]()                                                     | [click](./imagecompressor/modules/compressors/pil.py)   | PIL自带压缩算法               |
|   raisr              |      [click](https://arxiv.org/pdf/1606.01299.pdf)  | [click]()                                                     | [click](./imagecompressor/modules/compressors/raisr.py) | 谷歌RAISR算法                 |
|   dct                |      N/A                                            | [click]()                                                     | [click](./imagecompressor/modules/compressors/dct.py)   | 基于离散余弦变换的图像压缩    |
|   svd                |      N/A                                            | [click]()                                                     | [click](./imagecompressor/modules/compressors/svd.py)   | 基于奇异值分解的图像压缩      |


# Install

#### Pip install
```
run "pip install imagecompressor"
```

#### Source code install
```sh
(1) Offline
Step1: git clone https://github.com/CharlesPikachu/imagecompressor.git
Step2: cd imagecompressor -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/imagecompressor.git@master"
```


# Quick Start
```python
from imagecompressor import imagecompressor

compressor = imagecompressor.ImageCompressor('dct')
image, eavl_result = compressor('input.jpg')
```


# Screenshot
![img](./docs/screenshot.png)


# Projects in Charles_pikachu
- [Games](https://github.com/CharlesPikachu/Games): Create interesting games by pure python.
- [DecryptLogin](https://github.com/CharlesPikachu/DecryptLogin): APIs for loginning some websites by using requests.
- [Musicdl](https://github.com/CharlesPikachu/musicdl): A lightweight music downloader written by pure python.
- [Videodl](https://github.com/CharlesPikachu/videodl): A lightweight video downloader written by pure python.
- [Pytools](https://github.com/CharlesPikachu/pytools): Some useful tools written by pure python.
- [PikachuWeChat](https://github.com/CharlesPikachu/pikachuwechat): Play WeChat with itchat-uos.
- [Pydrawing](https://github.com/CharlesPikachu/pydrawing): Beautify your image or video.
- [ImageCompressor](https://github.com/CharlesPikachu/imagecompressor): Image compressors written by pure python.


# More
#### WeChat Official Accounts
*Charles_pikachu*  
![img](./docs/pikachu.jpg)

