Skip to content

A simple and fast photo compression web app built with Streamlit. Upload your image, choose the compression level, and download a smaller version without noticeable loss in quality. Ideal for sharing or reducing storage needs. Powered by Python and PIL (Pillow).

License

Notifications You must be signed in to change notification settings

Rudra-G-23/photo-compressor-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🗜️ Photo Compressor - Streamlit App

rudra-pic

GitHub Badge LinkedIn Badge Kaggle Badge

Streamlit Pillow


A fast, privacy-respecting photo compression app built using Streamlit and Pillow.
Upload a photo, adjust the quality using a simple slider, instantly compare before vs after, and download the compressed image — all without storing any files.


🚀 Features

  • Quick Upload – Instant image preview and compression.
  • 🔐 No Storage, No Tracking – Nothing is saved or logged.
  • 🧠 Privacy-First – All compression happens in memory, right in your session.
  • 📉 Image Size Comparison – See original and compressed file sizes side by side.
  • 📷 Before/After Comparison – Visually compare photo quality before and after compression.
  • 🎚️ Quality Control Bar – Slide to adjust image quality (0-100).
  • 📥 One-Click Download – Get your compressed photo instantly.

🗂️ File Structure

Photo-Compressor-App/
├── streamlit\_app.py        # Main application code
├── requirements.txt        # Dependencies to run the app


🤔 Why I Created This App

While filling out some online forms for government or exam portals, I often faced a frustrating issue:
They wouldn't accept my photo because it was too large.

Like most people, I turned to random online photo compressors, but then a thought hit me:

❗ “Am I risking my privacy by uploading personal images to unknown websites?”

So I decided to build this app myself – simple, open-source, and privacy-respecting.
Now anyone (including me) can compress photos without worrying about where their data ends up.


🛠️ How to Run Locally

  • Clone this repository:

    git clone https://github.com/Rudra-G-23/photo-compressor-app.git
    cd photo-compressor-app
  • Install dependencies:

    pip install -r requirements.txt
  • Run the app:

    streamlit run streamlit_app.py

🧾 Requirements

streamlit==1.25.0
Pillow

🎨 Screenshots

app-view


❤️ Contributing

Got ideas to improve this app? Feel free to open issues or submit a pull request!


📄 License

MIT License. Use it freely, modify it responsibly.


🙋‍♂️ Author

Rudra Prasad Bhuyan 📎 LinkedIn 💻 GitHub 📊 Kaggle

“Your data is yours. Compress smart. Stay private.” 🔐

About

A simple and fast photo compression web app built with Streamlit. Upload your image, choose the compression level, and download a smaller version without noticeable loss in quality. Ideal for sharing or reducing storage needs. Powered by Python and PIL (Pillow).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages