{ "info": { "author": "Jacksgong", "author_email": "igzhenjie@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# Webp Converter and Analytics\n\n![](https://img.shields.io/badge/webp-batch%20converter-orange.svg)\n![](https://img.shields.io/badge/webp-batch%20analytics-orange.svg)\n![](https://img.shields.io/badge/license-Apache2-blue.svg)\n[![](https://img.shields.io/badge/readme-English-blue.svg)](https://github.com/Jacksgong/webp-converter)\n[![](https://img.shields.io/badge/readme-\u4e2d\u6587-blue.svg)](https://github.com/Jacksgong/webp-converter/blob/master/README-zh.md)\n[![](https://img.shields.io/badge/pip-v4.0.0%20webp--converter-yellow.svg)](https://pypi.python.org/pypi/webp-converter)\n\nAn powerful webp batch converter and differ analytics tool.\n\nYou can use this tool to converter batch images(png/jpg) to webp and output size changes.\n\n![](https://github.com/Jacksgong/webp-converter/raw/master/arts/webp-converter.png)\n\n\n## Purpose\n\n1. Convert batch images from PNG/JPG format to Webp format\n2. WILL NOT convert images if its webp one is larger than origin one automatically(the origin one will be copied to `[output-directory]/origin/` directory)\n3. WILL NOT convert images if it is failed to convert to webp one automatically(the origin image of failed one will be copied to `[output-directory]/failed` directory)\n4. You can ignore all images which has transparency pixel if you want with `--ignore-transparency-image` config(the origin image of has-transparency-image will be copied to `/webp-converted/transparency` directory)\n5. Output convert result, like how much size reduces, how many files skip convert, etc...\n6. You can replace the images with converted-webp image automatically if you want with `replace: true` config\n\n## Install\n\n```shell\nbrew install webp\npip install webp-converter\n```\n\n## Use\n\n![](https://github.com/Jacksgong/webp-converter/raw/master/arts/help.png)\n\n#### Example\n\nIf you just want to convert all images on the current files when it can be smaller after converted and **replace** the origin one:\n\n```shell\nwebpc --r\n```\n\n![](https://github.com/Jacksgong/webp-converter/raw/master/arts/demo-1.png)\n\n\nIf you just want to convert all images on the current folder and with **quality-ratio** to `70` and **output** to `~/Downloads/test-converted` when it can be smaller after converted:\n\n```shell\nwebpc -q=70 -o=~/Downloads/test-converted/\n```\n\n![](https://github.com/Jacksgong/webp-converter/raw/master/arts/demo-2.png)\n\n\nIf you just want to convert all images on the current folder and with **clean** the `webp-converted` folder if it exist and with **quality-ratio** to `95` and **output** to `./webp-converted` and **ignore images when it has transparency** on it when it can be smaller after converted:\n\n```shell\nwebpc --c --ignore-transparency-image -q=95\n```\n![](https://github.com/Jacksgong/webp-converter/raw/master/arts/demo-3.png)\n\nIf you want to convert all **images on** `~/Downloads/img/test` folder and **output** converted result to `~/Downloads/test-converted` folder and only converted origin images when it isn't has **same name** `.webp` file on `~/Downloads/test-converted` folder(just not with `--c` argument) when it can be smaller after converted:\n\n\n```shell\nwebpc -o=~/Downloads/test-converted/ ~/Downloads/img/test\n```\n\n![](https://github.com/Jacksgong/webp-converter/raw/master/arts/demo-4.png)\n\n## License\n\n```\nCopyright 2017, JacksGong(https://jacksgong.com)\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Jacksgong/webp-converter", "keywords": "webp converter", "license": "Apache2", "maintainer": "", "maintainer_email": "", "name": "webp-converter", "package_url": "https://pypi.org/project/webp-converter/", "platform": "", "project_url": "https://pypi.org/project/webp-converter/", "project_urls": { "Homepage": "https://github.com/Jacksgong/webp-converter" }, "release_url": "https://pypi.org/project/webp-converter/4.0.1/", "requires_dist": null, "requires_python": "", "summary": "An powerful webp batch converter and differ analytics", "version": "4.0.1" }, "last_serial": 3152455, "releases": { "4.0.0": [ { "comment_text": "", "digests": { "md5": "cb63e98bacb16289178b3cb1823ef69a", "sha256": "a92954e47cc0fd6e3358345edfa5e52755dd15f69b982d1af10ab5e0c5ad1d01" }, "downloads": -1, "filename": "webp-converter-4.0.0.tar.gz", "has_sig": false, "md5_digest": "cb63e98bacb16289178b3cb1823ef69a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10340, "upload_time": "2017-09-05T16:40:34", "url": "https://files.pythonhosted.org/packages/d5/be/172de3e64ddef041329c1a5a4a52704e3ab43f601192e23253463f28ea37/webp-converter-4.0.0.tar.gz" } ], "4.0.1": [ { "comment_text": "", "digests": { "md5": "18c22ecd6f22357636570cfd1313a4fa", "sha256": "2dd912ac390c6b99dcba8bb4edc4b62455d242f957f940d3326328da5e00b4a0" }, "downloads": -1, "filename": "webp-converter-4.0.1.tar.gz", "has_sig": false, "md5_digest": "18c22ecd6f22357636570cfd1313a4fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10759, "upload_time": "2017-09-06T06:23:36", "url": "https://files.pythonhosted.org/packages/01/52/d5630f35f897e3dd164bcdc0701445a09e2e3aabc5ea292be3199bfb0431/webp-converter-4.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18c22ecd6f22357636570cfd1313a4fa", "sha256": "2dd912ac390c6b99dcba8bb4edc4b62455d242f957f940d3326328da5e00b4a0" }, "downloads": -1, "filename": "webp-converter-4.0.1.tar.gz", "has_sig": false, "md5_digest": "18c22ecd6f22357636570cfd1313a4fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10759, "upload_time": "2017-09-06T06:23:36", "url": "https://files.pythonhosted.org/packages/01/52/d5630f35f897e3dd164bcdc0701445a09e2e3aabc5ea292be3199bfb0431/webp-converter-4.0.1.tar.gz" } ] }