A lightweight, local Python script designed to strip all embedded metadata headers, EXIF tags, creation data, and ComfyUI workflow JSON schemas from your image files.
This tool isolates the raw pixel grid data to generate brand-new, unlinked image duplicates. It is perfect for preparing production datasets or safeguarding proprietary workflows before publishing media online.
- Complete Metadata Isolation: Drops embedded generation text, node graphs, and workflows.
- Lossless PNG Processing: Retains perfect visual fidelity without adding compression artifacts.
- Safe Output Directory: Automatically deposits cleaned images into a sub-folder to prevent overwriting your original files.
- Multi-Format Support: Processes
.png,.jpg,.jpeg, and.webpfiles seamlessly.
Ensure you have Python installed on your system. You will need the Pillow image processing library. Install it via your terminal or command prompt:
pip install Pillow- Copy the
imagecleaner.pyscript file. - Paste it directly into the folder containing the images you want to clean.
Double-click the script or open your terminal, navigate to that directory, and run the script using this command:
python imagecleaner.pyThe script will read all compatible images in its current directory. It creates a brand-new sub-folder named cleaned_images right next to the script and saves the scrubbed assets there. Your original source files remain completely untouched.
This utility is 100% open-source under the MIT License.
Image Ownership: As a local tool, you retain full ownership, copyright, and commercial rights over all processed, cleaned, and generated outputs.
Superklok Labs builds automated, hyper-scalable AI generation pipelines, custom model training, and production-ready toolsets.
If your organization needs enterprise-grade speed and robust pipeline engineering: