compress image without losing quality
Project description
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
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
image-compression-0.4.tar.gz
(1.9 kB
view details)
File details
Details for the file image-compression-0.4.tar.gz
.
File metadata
- Download URL: image-compression-0.4.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b512cb8925bc6282dc0f9fbd4eb809e70629f7a4152ebab0e7e22caf1050a6fd |
|
MD5 | 896df8dc0f31b5d177954a818f543ad9 |
|
BLAKE2b-256 | d0a53a70e582c336b8cf0fb1d79bf088d3774f82a9005fccd0ddac169e8bb3bf |