-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Description
Is there an existing issue for this?
- I have searched the existing issues and checked the recent builds/commits
What would your feature do?
I would like to be able to modify the log in a way to hide or remove images from the log
💡 Your New Proposal:
Add a “Hide” or “Delete” button per image in the HTML log, and then a “Save Changes” button at the bottom that:Regenerates the HTML log to remove hidden images.
Optionally deletes the associated image files from disk.
Proposed workflow
✅ Objective:
Allow users to hide or delete generated images from the HTML log via the log interface itself, with an optional “Save Changes” action that persists those modifications and optionally removes image files.
🧭 Step-by-Step: How the Feature Would Work
- 📄 Open log.html after generation
Fooocus already opens or generates a browsable log.html containing all outputs and metadata.
Each image has its prompt, seed, and settings.
- 🔘 Per-Image Options in HTML UI
For each image entry:
Add:
✅ A checkbox labeled “Hide from Log”
🗑️ (Optional) A checkbox labeled “Also delete image file”
html
Copy
Edit
Hide from Log
Also delete image
3. 💾 Global Button at Bottom: “Save Changes”
After users select images to hide/delete:
Click a button: [Save Changes]
This triggers JavaScript to write a small file:
to_hide.json → contains list of image filenames to hide
to_delete.json → contains list of image filenames to delete
(Optional: if direct file writing isn’t possible via HTML, save to localStorage and a Python script reads it on next launch.)
- 🐍 Backend Action on Next Fooocus Launch or Log Refresh
On the next launch or when a dedicated script is run:
Fooocus checks for to_hide.json and to_delete.json.
It:
Removes those entries from the log metadata file.
Regenerates log.html with excluded images.
If delete was checked, deletes those image files from the /output/ folder (or moves them to a /trash/ subfolder).
- 🧼 Optional Safety Features:
A confirmation popup: “Are you sure you want to delete these X images?”
Undo functionality (by saving backup copies of the log and image files)
Option to just move files to a trash folder instead of permanent deletion
🪟 Optional CLI Alternative:
For users who don’t want HTML interactivity:
bash
Copy
Edit
python delete_from_log.py --hide-list to_hide.json --delete-list to_delete.json
🧠 Benefits:
Clean, user-friendly log without unwanted images
Easier file management without needing to manually edit folders or JSON
Safe for casual and advanced users alike
Additional information
No response