hassanaftab93 / Image-Compressor

This script compresses the image choosen to much reduced size. Image can be of any format. Note : The image should be in same folder as the script It will return with the compressed image when you compile. It automates the task of compressing the image in day to day lives

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image-Compressor

Current average size compressions is: 87.5% Smaller than the original File

Test file was 1.5 mb, which is 1536 kb Output file was 193 kb

πŸ“‘ Steps to use

Python | Download Latest Version



Clone this Repo / Download the latest release
git clone https://github.com/hassanaftab93/Image-Compressor.git

cd to the Project directory

cd /Path/To/Project

Create a Virtual Environment for this Project

python -m venv venv

Activate Virtual Environment for this Project

Windows:

source venv/Scripts/activate

Linux/MacOS:

source ./venv/bin/activate

Install the Required Libraries

pip install -r requirements.txt

Place the Images to be compressed in src folder

Run the File 'compress.py'

  python compress.py

πŸ“š Contributing

Click here to learn more about: Contributions

βœ’οΈ Author

πŸ”— Links

Type Link
Portfolio portfolio
LinkedIn linkedin

About

This script compresses the image choosen to much reduced size. Image can be of any format. Note : The image should be in same folder as the script It will return with the compressed image when you compile. It automates the task of compressing the image in day to day lives

License:GNU General Public License v3.0


Languages

Language:Python 100.0%