Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 18, 2021 04:45 am GMT

Pixxia - Compress your Images in Optimal Quality for FREE

Introduction:

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.

GitHub logo dhhruv / Pixxia

Pixxia uses lossy compression methods to reduce the document size of your JPG/PNG files

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.

Download Pixxia.exe for Windows

Setup (Windows):

  1. Install Python
  2. Clone this repository
git clone https://github.com/dhhruv/Pixxia.git
  1. Install, create and activate virtual environment.For instance we create a virtual environment named 'venv'.
pip install virtualenvpython -m virtualenv venvvenv\Scripts\activate.bat
  1. Install dependencies
pip install -r requirements.txt

Download Pixxia.exe for Windows

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 for more information.

So, stay tuned for further updates on GitHub:

GitHub logo dhhruv / Pixxia

Pixxia uses lossy compression methods to reduce the document size of your JPG/PNG files

Download Pixxia.exe for Windows

Image Credits:


Original Link: https://dev.to/dhhruv/pixxia-compress-your-images-in-optimal-quality-for-free-8mi

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To