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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for imgyaso-2023.1.27.3.tar.gz
Algorithm Hash digest
SHA256 86ed160b8afb27f51977f287bd2a1d2b9dd92303c0856550c7d4e8d8a97a55a7
MD5 1e4d99ff9c58211db47a502896491886
BLAKE2b-256 ca10cf0430a8c067b904e4f219ec159fd5805d64c9c36dd137cf6948eb382520

See more details on using hashes here.

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

Hashes for imgyaso-2023.1.27.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1183213c6007290acfa5b435f3e59c8edfccb321c9781f352d09ec49a9759d8f
MD5 90ef9e6b0ec69126e7e6aa63f0098427
BLAKE2b-256 bc6cdfe2ec1dd52895c69b233637f1c2ed47cec0fbe56ac691f98dba442bf2b7

See more details on using hashes here.

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