I'm always excited to take on new projects and collaborate with innovative minds.

Phone

+91 93215 94759

Email

coffee@abhisat.com

Website

https://abhisat.com

Social Links

Python

CleanShot – Effortlessly Remove Duplicate Images with Python

CleanShot – Effortlessly Remove Duplicate Images with Python

🧹 CleanShot – Effortlessly Remove Duplicate Images with Python

Say goodbye to cluttered folders and hello to clean, organized image collections.

📸 Introduction

We’ve all been there — a folder full of duplicate images, wasting space and making it hard to find what you’re really looking for. Whether it’s from bulk photo downloads, image backups, or file syncing issues, duplicate images are a common annoyance.

That’s why I created CleanShot, a lightweight and user-friendly Python tool that helps you detect and delete duplicate images with just a few clicks. And yes — it comes with a GUI, a progress bar, and even generates a log file of everything it cleans up!

🚀 Why CleanShot?

Unlike other tools that rely on filenames or metadata, CleanShot uses image content hashing to identify duplicates — even if the filenames differ.

✅ Key Features:

  • Simple GUI – no terminal commands, just select a folder and go!
  • Smart Detection – detects duplicates based on image content.
  • Live Progress Bar – shows how many images have been processed.
  • Log File – keeps a record of all deleted files with timestamps.
  • No External Servers – everything runs securely on your own machine.

🧠 How It Works

CleanShot uses the Python Pillow library to load and resize each image, then computes a hash of its pixel content using hashlib. If two images have the same hash, one is deleted.

To ensure smooth user experience, the app is built using tkinter, Python’s native GUI library. It runs the image processing in a background thread and uses a queue to update the GUI safely.

🖼 Supported Image Formats

  • .jpg
  • .jpeg
  • .png
  • .bmp
  • .gif

📄 View the Code on GitHub

🔗 GitHub Repository:
👉 https://github.com/codersattu/SmartImageSweeper

📝 Log Output

CleanShot creates a log file in the selected folder named deleted_images_log.txt, listing all the images it deleted during the session — along with the exact timestamp.

💡 Bonus: Want to Turn It Into an .exe?

No problem! Use PyInstaller:

pip install pyinstaller
pyinstaller --noconsole --onefile duplicate_image_remover.py

👨‍💻 Author

I’m Abhishek Satpathy, a Dynatrace consultant and Automation Specialist about building smart tools that simplify digital chaos. You can find more of my work at abhisat.com.

 

💬 Final Thoughts

If you’re tired of messy folders and wasted space, CleanShot might just become your favorite photo companion. Lightweight, fast, and effective — it does one job, and it does it well.

Feel free to star the GitHub repo, submit a feature request, or contribute. Happy cleaning!

Python, Easy Hacks
2 min read
Apr 06, 2025
By Abhishek Satpathy
Share

Leave a comment

Your email address will not be published. Required fields are marked *

Related posts

Apr 06, 2025 • 3 min read
Image Extractor Tool from Folders

A lightweight Python tool that extracts all `.jpg`, `.jpeg`, and `.png...

Jan 30, 2025 • 2 min read
Automate Image Extraction: A Python Script to Download All Images from Any URL
Jan 30, 2025 • 3 min read
Fake vs Real Image Detection Web App: Using AI to Spot Manipulated Images