Skip to main content

Group Image Compressor (GIC)

Project description

GIC

An image compressor that compresses all images in the working directory.

Github
PyPI

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


Download files

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

Source Distribution

gic-4.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

gic-4.0.0-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

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