imagecompression 0.4
Image compression using Python
Image compression is done to reduce the cost of storage and transmission
Steps
Open the file and read it
Get the pixel values in RGB format
Convert the tuples into one list
Round the pixel values to nearest 10
Regroup the pixel values into tuple of 3
Create a new image from the tuple list where each pixel value in tuple indicate R,G,B value
E.g. (42,34,67) indicates R=42,G=34,B=67
Save the compressed image
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.