A simple yet elegant screenshot tool with a countdown timer overlay. Perfect for capturing your screen without the timer appearing in the final image!
- Countdown Timer: Visual countdown (5 seconds by default) before screenshot
- Clean Capture: Timer disappears before capture, ensuring clean screenshots
- Auto-Save: Screenshots automatically saved with timestamp
- Organized Storage: All images saved to
Images/folder in project directory - Timestamped Filenames: Format:
YYYY-MM-DD-HH-MM-SS.png
- Python 3.7 or higher
- pip (Python package manager)
- Clone the repository
git clone https://github.com/sahed-saad/ScreenSnip.git
cd ScreenSnip- Install dependencies
pip install pyscreenshot pillowRun the script:
python app.pyWhat happens:
- A countdown timer appears on screen (5... 4... 3... 2... 1...)
- Timer disappears
- Screenshot is captured
- Image is saved to
Images/folder - Screenshot opens in your default image viewer
ScreenSnip/
├── app.py # Main application script
├── Images/ # Screenshots saved here (auto-created)
│ ├── 2024-12-20-14-35-42.png
│ └── 2024-12-20-14-36-15.png
├── README.md # Project documentation
- Countdown Overlay: Creates a tkinter window with a countdown timer
- Window Properties:
- Always on top (
-topmost) - Borderless (
overrideredirect) - Yellow background with red text for visibility
- Always on top (
- Timer Logic: Recursive countdown using
root.after() - Screenshot Capture: Uses
pyscreenshot.grab()after timer closes - Auto-Save: Saves to
Images/folder with timestamp filename
Edit line 26 in app.py:
countdown_overlay(5) # Change 5 to any number of secondsEdit lines 10-11 in app.py:
label = tk.Label(root,
font=('Helvetica', 48), # Font and size
fg='red', # Text color
bg='yellow' # Background color
)Edit line 39 in app.py:
images_folder = os.path.join(script_dir, "Images") # Change "Images" to your folder nameEdit line 48 in app.py:
timestamp = datetime.now().strftime("%Y-%m-%d-%H-%M-%S") # Customize formatOther format options:
"%Y%m%d_%H%M%S"→20241220_143542"%Y-%m-%d_%I-%M-%S_%p"→2024-12-20_02-35-42_PM"%Y%m%d"→20241220(date only)
- pyscreenshot: Cross-platform screenshot library
- Pillow (PIL): Python Imaging Library for image processing
- tkinter: Built-in Python GUI library (comes with Python)
pip install pyscreenshot pillowIncrease the buffer time on line 29:
time.sleep(0.2) # Increase to 0.5 or 1.0The script uses __file__ to determine its location. Make sure you're running the script directly, not importing it.
# Ubuntu/Debian
sudo apt-get install python3-tk
# Fedora
sudo dnf install python3-tkinterContributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see below for details:
MIT License
Copyright (c) 2024
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
- Built with Python's tkinter for GUI
- Uses pyscreenshot for cross-platform screenshot capability
- Inspired by the need for clean screenshot captures
⭐ If you find this project useful, please consider giving it a star on GitHub!