Metadata-Version: 2.1
Name: simple-image-compressor
Version: 0.1.1
Summary: Simple utility to compress images on a given path
Home-page: https://github.com/sebastianserrani/simple_image_compressor/
Author: Sebastian Serrani
License: MIT
Keywords: image,compression,recursion,process,multiprocess,queue
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: System :: Archiving :: Compression
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: Pillow (>=8.3.0)

# 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](settings.json) file.

## Usage

**Command**: `simple_image_compressor.py [-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

```bash
python3 simple_image_compressor.py -v 2 "/home/username/images/folder1/"
```

```powershell
python simple_image_compressor.py -v 2 "C:\users\username\Images\folder1\"
```

> PS: First project in Python.

