Group Image Compressor (GIC)
Project description
GIC
An image compressor that compresses all images in the working directory.
To execute:
In Linux|Unix|macOS:
GUI:
Run gic
in a shell.
CLI:
Run gic-cli
in a shell.
In Windows:
Method 1:
In a cmd
window, change working directory to your desired folder and run gic
(GUI) or gic-cli
(CLI).
Method 2:
Copy the file gic.exe
(GUI) or gic-cli.exe
(CLI) from pythoninstallation\Scripts\
to your desired folder and double-click it.
To use in your python code:
A code that the user sets the compression level.
GUI
import gic.main
#change the working directory to whatever you want
gic.main.run()
CLI
import gic.cli
#change the working directory to whatever you want
gic.cli.run()
To be quiet:
A code that you set the compression level. Set quality to 1|2|3|4 or a percentage. Lower percentage is lower size and lower quality. 1 Means best, 4 means worst.
import gic.compress
gic.compress.compress(quality)
You can also pass another arguement to compress images in that directory.
import gic.compress
gic.compress.compress(quality, dir)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gic-4.0.0.tar.gz
.
File metadata
- Download URL: gic-4.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d91012bef26b3336de304aa598b46ae10bf2a95d35d0960aec322da52d743a |
|
MD5 | 58e7e58f8de5b8e85c9a515f5f881c95 |
|
BLAKE2b-256 | 66fcc5588850a0b3c480235c85d441cdb4eb82c68b5a7d554109069aa96c4da0 |
File details
Details for the file gic-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: gic-4.0.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 569cfebb617fc46411bc93e75e93288796bee78dce7f38cfe79a8e2b05efae4b |
|
MD5 | f8fa31ac06edf31fd2e6d4a17db3341f |
|
BLAKE2b-256 | 63d8e73b72945fc561fe0016904e1e1a6d54494246c8f0bcb92aaa9d415b6e7c |