Skip to main content

提供多种图片有损压缩方式,包括自适应二值化、网格仿色、颜色缩减

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgyaso-2023.1.27.3.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

imgyaso-2023.1.27.3-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page