aggimg


Nameaggimg JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/ClimenteA/aggressive-image-optimizer-cli
SummaryAggressive image optimizer cli!
upload_time2024-08-16 07:29:59
maintainerNone
docs_urlNone
authorClimente Alin
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Aggressive image optimizer cli

This CLI tries to bring all images to a size of 500kb without losing to much quality.
You can see the results in this repo (`HQ_unsplash1.jpg` original to reduced `unsplash1 copy.jpg`).
It uses `pillow` package to accomplish that.


## Install

It's recommended to use pipx to install package, but pip should work as well. 

```shell
pipx install aggimg
```

## Usage

You can specify path to folder which contains images you want to shrink/optimize image size.

```shell
aggimg --path ./images
```

You can also don't specify the path and `aggimg` will look into current directory for images.

```shell
aggimg
```
Images that start with `HQ_` prefix will ignored.

```shell
$: aggimg --path ./images
INFO - Trying to optimize ./images/unsplash1 copy.jpg
INFO - Reduced from 2222333 to 752461 which is a 66.14% reduction
INFO - Trying to optimize ./images/unsplash2 copy.jpg
INFO - Reduced from 1720129 to 478766 which is a 72.17% reduction
INFO - Trying to optimize ./images/unsplash3 copy.jpg
INFO - Reduced from 3054558 to 573479 which is a 81.23% reduction
```

*Please note that images will be modified in place (overwritten).*

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ClimenteA/aggressive-image-optimizer-cli",
    "name": "aggimg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Climente Alin",
    "author_email": "climente.alin@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a8/3f/929d66303f0f7c580f5023004357816b6b430dc5f41d254a85e92203858a/aggimg-0.0.2.tar.gz",
    "platform": null,
    "description": "# Aggressive image optimizer cli\n\nThis CLI tries to bring all images to a size of 500kb without losing to much quality.\nYou can see the results in this repo (`HQ_unsplash1.jpg` original to reduced `unsplash1 copy.jpg`).\nIt uses `pillow` package to accomplish that.\n\n\n## Install\n\nIt's recommended to use pipx to install package, but pip should work as well. \n\n```shell\npipx install aggimg\n```\n\n## Usage\n\nYou can specify path to folder which contains images you want to shrink/optimize image size.\n\n```shell\naggimg --path ./images\n```\n\nYou can also don't specify the path and `aggimg` will look into current directory for images.\n\n```shell\naggimg\n```\nImages that start with `HQ_` prefix will ignored.\n\n```shell\n$: aggimg --path ./images\nINFO - Trying to optimize ./images/unsplash1 copy.jpg\nINFO - Reduced from 2222333 to 752461 which is a 66.14% reduction\nINFO - Trying to optimize ./images/unsplash2 copy.jpg\nINFO - Reduced from 1720129 to 478766 which is a 72.17% reduction\nINFO - Trying to optimize ./images/unsplash3 copy.jpg\nINFO - Reduced from 3054558 to 573479 which is a 81.23% reduction\n```\n\n*Please note that images will be modified in place (overwritten).*\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Aggressive image optimizer cli!",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/ClimenteA/aggressive-image-optimizer-cli"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "59c48cbfe2cbb36e822867d9dcec398fb98acb50e3f50820172d6b83d36f9a1b",
                "md5": "1e1a7fc54db3e1938c324d2b81507c35",
                "sha256": "ed0b1891068fb0584047359fee32edf12abb0877527be82cfa0e3e9efc6ce193"
            },
            "downloads": -1,
            "filename": "aggimg-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1e1a7fc54db3e1938c324d2b81507c35",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3921,
            "upload_time": "2024-08-16T07:29:58",
            "upload_time_iso_8601": "2024-08-16T07:29:58.321268Z",
            "url": "https://files.pythonhosted.org/packages/59/c4/8cbfe2cbb36e822867d9dcec398fb98acb50e3f50820172d6b83d36f9a1b/aggimg-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a83f929d66303f0f7c580f5023004357816b6b430dc5f41d254a85e92203858a",
                "md5": "964a7584cf27553f912def5f1e7de7a9",
                "sha256": "8afa447877aea634437cfcc77c94dbf278c10af24d66873ff168dfba8f72b129"
            },
            "downloads": -1,
            "filename": "aggimg-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "964a7584cf27553f912def5f1e7de7a9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3715,
            "upload_time": "2024-08-16T07:29:59",
            "upload_time_iso_8601": "2024-08-16T07:29:59.249612Z",
            "url": "https://files.pythonhosted.org/packages/a8/3f/929d66303f0f7c580f5023004357816b6b430dc5f41d254a85e92203858a/aggimg-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-16 07:29:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ClimenteA",
    "github_project": "aggressive-image-optimizer-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "aggimg"
}
        
Elapsed time: 0.33485s