File | Date | Author | Commit |
---|---|---|---|
LICENSE | 2025-06-04 |
![]() |
[eac495] Initial commit with fresh history |
PromptSniffer.py | 2025-06-04 |
![]() |
[eac495] Initial commit with fresh history |
README.md | 2025-06-04 |
![]() |
[eac495] Initial commit with fresh history |
install.bat | 2025-06-04 |
![]() |
[eac495] Initial commit with fresh history |
uninstall.bat | 2025-06-04 |
![]() |
[eac495] Initial commit with fresh history |
A powerful tool for reading, extracting, and removing AI generation metadata from image files.
Specifically designed to handle metadata from AI image generation tools like ComfyUI, Stable Diffusion, SwarmUI, InvokeAI, and more.
install.bat
bash
pip install Pillow ExifRead
bash
pip install pyperclip
# View metadata for a single image
python PromptSniffer.py image.jpg
# Process multiple images with wildcards
python PromptSniffer.py *.png
# Process all images in a folder
python PromptSniffer.py folder/*.jpg
# Show only AI generation metadata
python PromptSniffer.py --ai-only generated_image.png
# Remove metadata from images (creates backups)
python PromptSniffer.py --remove *.jpg
# Save metadata to separate files
python PromptSniffer.py --save-metadata ai_artwork.png
# Copy metadata to clipboard (single file only)
python PromptSniffer.py --copy workflow_image.png
# Verbose output
python PromptSniffer.py --verbose *.tiff
After installation, right-click any supported image file and select:
- PromptSniffer → View MetaData: Display metadata in command window
- PromptSniffer → Copy MetaData: Copy metadata to clipboard
- PromptSniffer → Extract MetaData: Save metadata to separate files
- PromptSniffer → Remove MetaData: Remove metadata from file and save original as .backup
-
files
: Image file(s) or wildcard patterns to process-r, --remove
: Remove AI generation metadata from images-s, --save-metadata
: Save AI generation metadata to separate files-c, --copy
: Copy AI generation metadata to clipboard (single file only)-v, --verbose
: Show verbose output--ai-only
: Only display potential AI generation metadata# Save metadata from all AI-generated images
python PromptSniffer.py --save-metadata --ai-only AI_outputs/*.png
# Extract ComfyUI workflow for reuse
python PromptSniffer.py --copy comfyui_image.png
# Then Ctrl+V in ComfyUI to load workflow
# Save Stable Diffusion parameters
python PromptSniffer.py --save-metadata sd_output.jpg
# Creates sd_output.txt with generation parameters
Run as Administrator: uninstall.bat
This removes all context menu entries from Windows Explorer.
"Required libraries not installed"
pip install Pillow ExifRead
"Failed to copy to clipboard"
- Windows: Install pip install pywin32
- Linux: Install xclip
or xsel
- macOS: Should work by default
Made with ❤️ by Mohsyn
For support or questions, please open an issue on GitHub.