imgyaso


Nameimgyaso JSON
Version 2023.1.27.3 PyPI version JSON
download
home_pagehttps://github.com/apachecn/imgyaso
Summary提供多种图片有损压缩方式,包括自适应二值化、网格仿色、颜色缩减
upload_time2023-03-10 08:20:00
maintainer
docs_urlNone
authorApacheCN
requires_python>=3.6
license
keywords image processing lossy compression adaptive threshold bilevel grid dither quantize 图像处理 有损压缩 自适应阈值 二值化 网格仿色 颜色缩减
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # ImgYaso

提供多种图像处理工具,包括自适应二值化,灰度网格仿色,扩散仿色,和颜色缩减。

## 安装

通过 pip(推荐):

```
pip install imgyaso
```

从源码安装:

```
pip install git+https://github.com/apachecn/imgyaso
```

并且安装 [ImageMagick](https://imagemagick.org/script/download.php)。可能还需要安装`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 协议发布。

您有义务为此开源项目点赞,并考虑额外给予作者适当的奖励。

## 赞助我们

![](https://home.apachecn.org/img/about/donate.jpg)

## 另见

+   [ApacheCN 学习资源](https://docs.apachecn.org/)
+   [计算机电子书](http://it-ebooks.flygon.net)
+   [布客新知](http://flygon.net/ixinzhi/)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/apachecn/imgyaso",
    "name": "imgyaso",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "image,processing,lossy,compression,adaptive,threshold,bilevel,grid,dither,quantize,\u56fe\u50cf\u5904\u7406,\u6709\u635f\u538b\u7f29,\u81ea\u9002\u5e94\u9608\u503c,\u4e8c\u503c\u5316,\u7f51\u683c\u4eff\u8272,\u989c\u8272\u7f29\u51cf",
    "author": "ApacheCN",
    "author_email": "apachecn@163.com",
    "download_url": "https://files.pythonhosted.org/packages/ca/10/cf0430a8c067b904e4f219ec159fd5805d64c9c36dd137cf6948eb382520/imgyaso-2023.1.27.3.tar.gz",
    "platform": null,
    "description": "# ImgYaso\n\n\u63d0\u4f9b\u591a\u79cd\u56fe\u50cf\u5904\u7406\u5de5\u5177\uff0c\u5305\u62ec\u81ea\u9002\u5e94\u4e8c\u503c\u5316\uff0c\u7070\u5ea6\u7f51\u683c\u4eff\u8272\uff0c\u6269\u6563\u4eff\u8272\uff0c\u548c\u989c\u8272\u7f29\u51cf\u3002\n\n## \u5b89\u88c5\n\n\u901a\u8fc7 pip\uff08\u63a8\u8350\uff09\uff1a\n\n```\npip install imgyaso\n```\n\n\u4ece\u6e90\u7801\u5b89\u88c5\uff1a\n\n```\npip install git+https://github.com/apachecn/imgyaso\n```\n\n\u5e76\u4e14\u5b89\u88c5 [ImageMagick](https://imagemagick.org/script/download.php)\u3002\u53ef\u80fd\u8fd8\u9700\u8981\u5b89\u88c5`libgl1`\u3002\n\n## \u4f7f\u7528\u8bf4\u660e\n\n```\nimgyaso [-h] [-v] [-c COLORS] [-m {grid,noise,trunc,quant,thres}]\n        [-o OFNAME]\n        fname\n\n-c COLORS: \u989c\u8272\u6570\uff0c\u53ea\u5bf9 trunc, quant \u6a21\u5f0f\u6709\u6548\n-m MODE: \u6a21\u5f0f\u540d\u79f0\uff0c\u503c\u4e3a grid\uff08\u7070\u5ea6\u7f51\u683c\u4eff\u8272\uff09\uff0cnoise\uff08\u7070\u5ea6\u6269\u6563\u4eff\u8272\uff09\uff0c\n         trunc\uff08\u7070\u5ea6\u622a\u65ad\uff09\uff0cquant\uff08\u989c\u8272\u7f29\u51cf\uff09\uff0cthres\uff08\u81ea\u9002\u5e94\u4e8c\u503c\u5316\uff09\uff0c\n         \u9ed8\u8ba4\u4e3a quant\n-o OFNAME: \u8f93\u51fa\u6587\u4ef6\u540d\u79f0\uff0c\u9ed8\u8ba4\u548c\u8f93\u5165\u6587\u4ef6\u76f8\u540c\nfname: \u8f93\u5165\u6587\u4ef6\u540d\u79f0\n```\n\n## \u534f\u8bae\n\n\u672c\u9879\u76ee\u57fa\u4e8e SATA \u534f\u8bae\u53d1\u5e03\u3002\n\n\u60a8\u6709\u4e49\u52a1\u4e3a\u6b64\u5f00\u6e90\u9879\u76ee\u70b9\u8d5e\uff0c\u5e76\u8003\u8651\u989d\u5916\u7ed9\u4e88\u4f5c\u8005\u9002\u5f53\u7684\u5956\u52b1\u3002\n\n## \u8d5e\u52a9\u6211\u4eec\n\n![](https://home.apachecn.org/img/about/donate.jpg)\n\n## \u53e6\u89c1\n\n+   [ApacheCN \u5b66\u4e60\u8d44\u6e90](https://docs.apachecn.org/)\n+   [\u8ba1\u7b97\u673a\u7535\u5b50\u4e66](http://it-ebooks.flygon.net)\n+   [\u5e03\u5ba2\u65b0\u77e5](http://flygon.net/ixinzhi/)\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "\u63d0\u4f9b\u591a\u79cd\u56fe\u7247\u6709\u635f\u538b\u7f29\u65b9\u5f0f\uff0c\u5305\u62ec\u81ea\u9002\u5e94\u4e8c\u503c\u5316\u3001\u7f51\u683c\u4eff\u8272\u3001\u989c\u8272\u7f29\u51cf",
    "version": "2023.1.27.3",
    "split_keywords": [
        "image",
        "processing",
        "lossy",
        "compression",
        "adaptive",
        "threshold",
        "bilevel",
        "grid",
        "dither",
        "quantize",
        "\u56fe\u50cf\u5904\u7406",
        "\u6709\u635f\u538b\u7f29",
        "\u81ea\u9002\u5e94\u9608\u503c",
        "\u4e8c\u503c\u5316",
        "\u7f51\u683c\u4eff\u8272",
        "\u989c\u8272\u7f29\u51cf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc6cdfe2ec1dd52895c69b233637f1c2ed47cec0fbe56ac691f98dba442bf2b7",
                "md5": "90ef9e6b0ec69126e7e6aa63f0098427",
                "sha256": "1183213c6007290acfa5b435f3e59c8edfccb321c9781f352d09ec49a9759d8f"
            },
            "downloads": -1,
            "filename": "imgyaso-2023.1.27.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "90ef9e6b0ec69126e7e6aa63f0098427",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 9479,
            "upload_time": "2023-03-10T08:19:58",
            "upload_time_iso_8601": "2023-03-10T08:19:58.736897Z",
            "url": "https://files.pythonhosted.org/packages/bc/6c/dfe2ec1dd52895c69b233637f1c2ed47cec0fbe56ac691f98dba442bf2b7/imgyaso-2023.1.27.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca10cf0430a8c067b904e4f219ec159fd5805d64c9c36dd137cf6948eb382520",
                "md5": "1e4d99ff9c58211db47a502896491886",
                "sha256": "86ed160b8afb27f51977f287bd2a1d2b9dd92303c0856550c7d4e8d8a97a55a7"
            },
            "downloads": -1,
            "filename": "imgyaso-2023.1.27.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1e4d99ff9c58211db47a502896491886",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6081,
            "upload_time": "2023-03-10T08:20:00",
            "upload_time_iso_8601": "2023-03-10T08:20:00.100412Z",
            "url": "https://files.pythonhosted.org/packages/ca/10/cf0430a8c067b904e4f219ec159fd5805d64c9c36dd137cf6948eb382520/imgyaso-2023.1.27.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-10 08:20:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "apachecn",
    "github_project": "imgyaso",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "imgyaso"
}
        
Elapsed time: 0.06432s