img2webp


Nameimg2webp JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryA tool to convert images to WebP format with both GUI and CLI interfaces
upload_time2024-10-29 15:47:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Bert Rico Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords image converter webp gui cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # img2webp

A tool to convert images to WebP format with both GUI and CLI interfaces.

## Features

- Convert multiple images to WebP format
- Support for HEIC, JPG, JPEG, and PNG formats
- Adjustable compression/quality level
- Both GUI and CLI interfaces
- Progress tracking
- Batch processing support

## Installation

```bash
pip install img2webp
```

## Usage

### Graphical Interface

Run the GUI converter by executing:

```bash
img2webp
```

Or in Python:

```python
from img2webp.gui import main
main()
```

### Command Line Interface

The CLI version provides various options for converting images:

```bash
# Convert a single file
img2webp-cli input.jpg -o output_dir

# Convert multiple files
img2webp-cli input1.jpg input2.png -o output_dir

# Set quality level (1-100)
img2webp-cli input.jpg -o output_dir -q 90

# Convert all supported images in a directory
img2webp-cli directory/*.jpg -o output_dir

# Enable verbose output
img2webp-cli input.jpg -o output_dir -v
```

### Python API

You can also use the package programmatically:

```python
from img2webp import convert_image, process_files

# Convert a single image
convert_image("input.jpg", "output.webp", quality=80)

# Convert multiple images
successful, failed = process_files(
    ["input1.jpg", "input2.png"],
    "output_directory",
    quality=80
)
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "img2webp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "image, converter, webp, gui, cli",
    "author": null,
    "author_email": "\"Bert Rico, ByteWise Analytics\" <support@bytewise.app>",
    "download_url": "https://files.pythonhosted.org/packages/44/c1/7db2346a32345cd19fd63ada0674eace8f0a9e2d77c364983320a7b20996/img2webp-0.1.1.tar.gz",
    "platform": null,
    "description": "# img2webp\r\n\r\nA tool to convert images to WebP format with both GUI and CLI interfaces.\r\n\r\n## Features\r\n\r\n- Convert multiple images to WebP format\r\n- Support for HEIC, JPG, JPEG, and PNG formats\r\n- Adjustable compression/quality level\r\n- Both GUI and CLI interfaces\r\n- Progress tracking\r\n- Batch processing support\r\n\r\n## Installation\r\n\r\n```bash\r\npip install img2webp\r\n```\r\n\r\n## Usage\r\n\r\n### Graphical Interface\r\n\r\nRun the GUI converter by executing:\r\n\r\n```bash\r\nimg2webp\r\n```\r\n\r\nOr in Python:\r\n\r\n```python\r\nfrom img2webp.gui import main\r\nmain()\r\n```\r\n\r\n### Command Line Interface\r\n\r\nThe CLI version provides various options for converting images:\r\n\r\n```bash\r\n# Convert a single file\r\nimg2webp-cli input.jpg -o output_dir\r\n\r\n# Convert multiple files\r\nimg2webp-cli input1.jpg input2.png -o output_dir\r\n\r\n# Set quality level (1-100)\r\nimg2webp-cli input.jpg -o output_dir -q 90\r\n\r\n# Convert all supported images in a directory\r\nimg2webp-cli directory/*.jpg -o output_dir\r\n\r\n# Enable verbose output\r\nimg2webp-cli input.jpg -o output_dir -v\r\n```\r\n\r\n### Python API\r\n\r\nYou can also use the package programmatically:\r\n\r\n```python\r\nfrom img2webp import convert_image, process_files\r\n\r\n# Convert a single image\r\nconvert_image(\"input.jpg\", \"output.webp\", quality=80)\r\n\r\n# Convert multiple images\r\nsuccessful, failed = process_files(\r\n    [\"input1.jpg\", \"input2.png\"],\r\n    \"output_directory\",\r\n    quality=80\r\n)\r\n```\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the LICENSE file for details.\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Bert Rico  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A tool to convert images to WebP format with both GUI and CLI interfaces",
    "version": "0.1.1",
    "project_urls": {
        "homepage": "https://github.com/bytewise-analytics/img2webp",
        "issues": "https://github.com/bytewise-analytics/img2webp/issues"
    },
    "split_keywords": [
        "image",
        " converter",
        " webp",
        " gui",
        " cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0eb22e495020ae0d7b62b30c82acea32c9fe15af7978f1acb42638455e8f3d90",
                "md5": "c65580b95c5b663d39757ca5cb5056f7",
                "sha256": "f47ad6ed1e9383ed36d7d415a232f7a7b0b3b6fe6cfd05a6aabe960ab3ec5ec1"
            },
            "downloads": -1,
            "filename": "img2webp-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c65580b95c5b663d39757ca5cb5056f7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7501,
            "upload_time": "2024-10-29T15:47:53",
            "upload_time_iso_8601": "2024-10-29T15:47:53.108244Z",
            "url": "https://files.pythonhosted.org/packages/0e/b2/2e495020ae0d7b62b30c82acea32c9fe15af7978f1acb42638455e8f3d90/img2webp-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "44c17db2346a32345cd19fd63ada0674eace8f0a9e2d77c364983320a7b20996",
                "md5": "22e68f391f48bb20155f3fc7b378d579",
                "sha256": "ce73461c131d200257d3ca8a2306ce0d24a1b53200c2ca63a701a3a9a9644e85"
            },
            "downloads": -1,
            "filename": "img2webp-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "22e68f391f48bb20155f3fc7b378d579",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8043,
            "upload_time": "2024-10-29T15:47:54",
            "upload_time_iso_8601": "2024-10-29T15:47:54.581956Z",
            "url": "https://files.pythonhosted.org/packages/44/c1/7db2346a32345cd19fd63ada0674eace8f0a9e2d77c364983320a7b20996/img2webp-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-29 15:47:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bytewise-analytics",
    "github_project": "img2webp",
    "github_not_found": true,
    "lcname": "img2webp"
}
        
Elapsed time: 0.34404s