Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhhruv/pixxia
🖼 Pixxia uses lossy compression methods to reduce the document size of your JPG/PNG files.
https://github.com/dhhruv/pixxia
cli compression gui hacktoberfest hacktoberfest2021 image image-compression image-compressor jpg library png png-compression python shell terminal testing tkinter tkinter-gui
Last synced: 6 days ago
JSON representation
🖼 Pixxia uses lossy compression methods to reduce the document size of your JPG/PNG files.
- Host: GitHub
- URL: https://github.com/dhhruv/pixxia
- Owner: dhhruv
- License: mit
- Created: 2021-03-04T05:27:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T07:57:36.000Z (almost 2 years ago)
- Last Synced: 2023-05-14T17:15:49.394Z (over 1 year ago)
- Topics: cli, compression, gui, hacktoberfest, hacktoberfest2021, image, image-compression, image-compressor, jpg, library, png, png-compression, python, shell, terminal, testing, tkinter, tkinter-gui
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Complete Solution for Compression of JPG/PNG Files.
# Pixxia:
The above script uses lossy compression methods to reduce the document size of your JPG/PNG files. This is achieved by rounding up the (R,G,B) values from each pixel of it's unit digit in your image, therefore lesser number of bytes are required to store the information. Sometimes, there are major changes in the bytes stored well as sometimes there are minor changes so it depends entirely on the pixels of the image.
## Image Comparison:
Image 1:
Image 2:
> For Images >= 6 MB you may see a great compression ratio as compared to the images which are smaller than that.
## Setup (Windows):
1. Install Python
2. Clone this repository
```
git clone https://github.com/dhhruv/Pixxia.git
```3. Install, create and activate virtual environment.
For instance we create a virtual environment named 'venv'.
```
pip install virtualenv
python -m virtualenv venv
venv\Scripts\activate.bat
```4. Install dependencies
```
pip install -r requirements.txt
```
## How To Use !
1. Click SELECT INPUT FOLDER Button to select the INPUT FOLDER which contains all the Images to be Compressed/Optimized.
2. Click SELECT OUTPUT FOLDER Button to select the OUTPUT FOLDER which will contain all the the Compressed/Optimized Images.
3. Hit the COMPRESS Button and the INPUT FOLDER containing Supported Image Formats will be Compressed and saved in the OUTPUT FOLDER.
4. Click CLEAR Button to reset the input fields and status bar. (If needed)> NOTE: Recommended to keep INPUT and OUTPUT Folder different for your ease to differentiate between Optimized and Unoptimized Images.
## Important Note:
- **This Script goes through each pixel of every supported image in the INPUT folder so it'll take more time than usual to process the Image.**
- **This Script is just a Prototype so results may be unexpected.**
- **The Authors will not be responsible for any kind of loss of data so it is essential to have a Backup of Original Data placed in the Input Folder. Read the [LICENSE](https://github.com/dhhruv/Pixxia/blob/master/LICENSE) for more information.**## Image Credits:
- [Unsplash](https://unsplash.com/)