Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gopal2210G/Image_compression_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Image Compression App Overview This Streamlit-based Python application performs image compression using the K-means clustering algorithm. It allows users to upload an image, select the number of colors (k) for compression, and download the compressed image.

Features Upload Image: Users can upload JPEG, PNG, or JPEG images. Compression Slider: Adjustable slider for selecting the number of colors (k) for image compression. Visual Output: Display of both original and compressed images using Streamlit's image display capabilities. Downloadable Result: Option to download the compressed image in JPEG format. Installation Clone the repository: git clone https://github.com/your-username/image-compression-app.git cd image-compression-app Install dependencies:

Copy code pip install -r requirements.txt Usage Run the Streamlit app:

streamlit run app.py

Open your web browser and navigate to the URL provided by Streamlit (usually http://localhost:8501).

Upload an image using the file uploader. Adjust the slider to choose the number of colors (k) for compression. View the original and compressed images side by side. Click on "Download Compressed Image" to save the compressed image to your local machine. Technologies Used 1.Python 2.Streamlit 3.NumPy 4.PIL (Python Imaging Library)

Uploading Screenshot (2130).png… Uploading Screenshot (2136).png…

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages