https://github.com/asirihewage/remove_metadata_comfyui
A lightweight custom ComfyUI node that removes all metadata from images (EXIF, PNG text chunks, AI generation info) while keeping the image visually unchanged.
https://github.com/asirihewage/remove_metadata_comfyui
comfyui comfyui-custom-node comfyui-nodes image-processing metadata
Last synced: 2 months ago
JSON representation
A lightweight custom ComfyUI node that removes all metadata from images (EXIF, PNG text chunks, AI generation info) while keeping the image visually unchanged.
- Host: GitHub
- URL: https://github.com/asirihewage/remove_metadata_comfyui
- Owner: asirihewage
- License: gpl-3.0
- Created: 2026-01-10T05:08:46.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-10T06:43:10.000Z (5 months ago)
- Last Synced: 2026-01-11T01:33:26.518Z (5 months ago)
- Topics: comfyui, comfyui-custom-node, comfyui-nodes, image-processing, metadata
- Language: Python
- Homepage: https://w3genesis.com
- Size: 43.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-comfyui - **remove_metadata_comfyui** - stealth metadata removal node for ComfyUI (Workflows (3998) sorted by GitHub Stars)
README
# π§Ή Remove Metadata for ComfyUI



A lightweight **custom ComfyUI node** that removes all metadata from images (EXIF, PNG text chunks, AI generation info) while keeping the image visually **unchanged**.
Perfect for:
* Cleaning AI-generated images
* Privacyβfocused workflows
* Preparing images for upload, sharing, or datasets
* Avoiding unwanted metadata leaks
---
## β¨ Features
* β
Removes EXIF metadata (camera, software, GPS, etc.)
* β
Strips PNG `tEXt`, `iTXt`, and `zTXt` chunks
* β
Removes AI generation comments
* β
Works with **batch images**
* β
No visible quality loss
* β
Fully offline & local
---
## π Installation
1. Navigate to your ComfyUI installation:
```bash
cd ComfyUI/custom_nodes
```
2. Clone or create the node folder:
```bash
git clone https://github.com/yourname/remove-metadata-comfyui.git
```
3. Restart **ComfyUI**
---
## π§© Node Location
After restart, find the node at:
```
Image β Utils β Remove Image Metadata
```
---
## π Usage
Basic workflow:
```
Load Image
β
Remove Image Metadata
β
Save Image
```
* Input: `IMAGE`
* Output: `IMAGE` (cleaned, metadataβfree)
The output image will look **identical**, but all metadata is removed.
---
## π§ How It Works
* Converts ComfyUI image tensors to PIL images
* Reβencodes images without metadata
* Returns clean tensors back to ComfyUI
No pixel manipulation, only metadata sanitization.
---
## β οΈ Notes
* Color profile (ICC) is currently removed
* PNG output format is used internally
* Original filename metadata is not preserved
---
## π Planned Enhancements
* π Toggle: keep/remove ICC color profile
* π Batch filename suffix (`_clean`)
* πΈ JPEG / PNG format selector
* π° Optional GPS spoof node (separate module)
* π‘ Extraβstealth recompression mode
---
## π Compatibility Table
| Environment | Supported | Notes |
| ------------------------ | --------- | ----------------------------------------- |
| ComfyUI (source install) | β
Yes | Fully supported |
| ComfyUI Windows Portable | β
Yes | No venv required |
| ComfyUI Linux Portable | β
Yes | FFmpeg must be system-installed for video |
| ComfyUI Manager | β
Yes | Installable via `comfyui_node.yaml` |
| Docker-based ComfyUI | β
Yes | Ensure FFmpeg available for video |
---
## ποΈ Supported Formats
### πΌοΈ Images
| Format | Support Level | Notes |
| ------ | ------------- | --------------------------------------------------- |
| PNG | β
Full | Lossless, pixel-identical |
| JPG | β
Full | One safe recompression (normal) |
| JPEG | β
Full | Same as JPG |
| WEBP | π‘ Partial | Metadata removal works, not recommended for stealth |
| TIFF | π‘ Partial | Behavior varies by Pillow build |
### π₯ Videos
| Format | Support Level | Notes |
| ------------------- | ----------------- | -------------------------------------- |
| MP4 (H.264 / H.265) | β
Full | No re-encode, stream copy |
| MOV | β
Full | Apple-safe remux |
| MKV | π‘ Partial | Some container headers remain (normal) |
| AVI / WMV / FLV | β Not Recommended | Metadata handling unreliable |
---
## π‘οΈ Stealth Guarantees by Format
| Format | Pixel / Stream Integrity | Metadata Removed |
| ---------- | ------------------------ | ---------------------- |
| PNG | Pixel-identical | AI / Media / Privacy |
| JPG / JPEG | Visually identical | AI / Media / Privacy |
| MP4 / MOV | Bitstream identical | AI / Media / Privacy |
| MKV | Stream identical | Partial container tags |
---
## π License
MIT License β free to use, modify, and distribute.
---
## π Credits
Built for the **ComfyUI** ecosystem.
If you find this useful, feel free to β the repo and contribute!
---
## π¬ Support / Contributions
PRs, issues, and feature requests are welcome.
Happy generating π§ β¨