提供多种图片有损压缩方式,包括自适应二值化、网格仿色、颜色缩减
This project has been quarantined.
PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.
Read more in the project in quarantine help article.
Project description
ImgYaso
提供多种图像处理工具,包括自适应二值化,灰度网格仿色,扩散仿色,和颜色缩减。
安装
通过 pip(推荐):
pip install imgyaso
从源码安装:
pip install git+https://github.com/apachecn/imgyaso
并且安装 ImageMagick。可能还需要安装libgl1。
使用说明
imgyaso [-h] [-v] [-c COLORS] [-m {grid,noise,trunc,quant,thres}]
[-o OFNAME]
fname
-c COLORS: 颜色数,只对 trunc, quant 模式有效
-m MODE: 模式名称,值为 grid(灰度网格仿色),noise(灰度扩散仿色),
trunc(灰度截断),quant(颜色缩减),thres(自适应二值化),
默认为 quant
-o OFNAME: 输出文件名称,默认和输入文件相同
fname: 输入文件名称
协议
本项目基于 SATA 协议发布。
您有义务为此开源项目点赞,并考虑额外给予作者适当的奖励。
赞助我们
另见
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imgyaso-2023.1.27.3.tar.gz.
File metadata
- Download URL: imgyaso-2023.1.27.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.13.0 pkginfo/1.9.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ed160b8afb27f51977f287bd2a1d2b9dd92303c0856550c7d4e8d8a97a55a7
|
|
| MD5 |
1e4d99ff9c58211db47a502896491886
|
|
| BLAKE2b-256 |
ca10cf0430a8c067b904e4f219ec159fd5805d64c9c36dd137cf6948eb382520
|
File details
Details for the file imgyaso-2023.1.27.3-py3-none-any.whl.
File metadata
- Download URL: imgyaso-2023.1.27.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.13.0 pkginfo/1.9.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1183213c6007290acfa5b435f3e59c8edfccb321c9781f352d09ec49a9759d8f
|
|
| MD5 |
90ef9e6b0ec69126e7e6aa63f0098427
|
|
| BLAKE2b-256 |
bc6cdfe2ec1dd52895c69b233637f1c2ed47cec0fbe56ac691f98dba442bf2b7
|