Feature(backend): Add a command-line utility for running gallery maintenance (#8827)

* (bugfix) Add a command-line utility for running gallery maintenance

* chore(backend): ruff
This commit is contained in:
Lincoln Stein
2026-02-16 18:44:19 -05:00
committed by GitHub
parent dbb20a011a
commit 848cc12d63
2 changed files with 12 additions and 0 deletions

12
scripts/gallery_maintenance.py Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python3
"""
gallery_maintenance.py
Remove orphan images from the gallery directory.
Remove orphan database entries for images that no longer exist in the gallery directory.
Regenerate missing thumbnail images.
"""
from invokeai.backend.util.gallery_maintenance import main
main()