Catalog PyPI
Back to packageRELEASE DETAILS

0.0.2

PyPI

aggimg

Aggressive image optimizer cli!

Published16 Aug 2024
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.0.2 documentation

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.

pipx install aggimg

Usage

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

aggimg --path ./images

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

aggimg

Images that start with HQ_ prefix will ignored.

$: 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).

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pillow
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
pillow==10.3.0runtime

Distribution files

2 collected
aggimg-0.0.2-py3-none-any.whl

bdist_wheel · 3.83 KB · Python py3

Source file
aggimg-0.0.2.tar.gz

sdist · 3.63 KB · Python source

Source file

Repository

PENDING
climentea/aggressive-image-optimizer-cli

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b589b3b8b0542f7f10e9c74cae7ad29f6cee0852933d406048d760d16aaaeb8d

Other collected versions

View all collected versions →