Skip to main content

Simple utility to compress images on a given path

Project description

Simple Image Compressor

Simple utility to compress images on a given path, with recursion.
It uses multiple processes to consume the source directories queue.
Does not preserve image metadata.

See the settings file.

Usage

Command: simple_image_compressor [-h] [-v {0,1,2,3}] [-s] [-t] [-n] path [path ...]

Positional arguments:
path paths separated with spaces (paths with spaces must be quoted)

Optional arguments:
-h, --help show the help message and exit
-v {0,1,2,3} verbosity level: 0=log file, 1=print dirs, 2=print files, 3=print json
-s soft compression: doesn't resize, just compresses up to 80% quality
-t temp output: doesn't replace source images, instead saves compressed images to %temp%
-n no exceptions: process directories even if they're in the exceptions list

Example

python3 -m simple_image_compressor -v 2 "/home/username/images/folder1/"
python -m simple_image_compressor -v 2 "C:\users\username\Images\folder1\"

PS: First project in Python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_image_compressor-0.1.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_image_compressor-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: simple_image_compressor-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for simple_image_compressor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63cb8b73c89587b952c0a5c326ba551d177da13d6c678f10f893d9efa03a7741
MD5 26bec658f89ae6a2361c2d5dce8430d9
BLAKE2b-256 f0f135ce385a29a9c9dc9ee23149274071415b58a284c178f62c5be217b68dd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page