sd-webui-infinite-image-bro.../scripts/iib
zanllp e5413e41f1 feat: optimize random images, improve ComfyUI detection and prompt display
Backend optimizations:
- Refactor get_random_images() using SQLite ORDER BY RANDOM()
- Simplify from 60+ lines to ~20 lines with better performance
- Remove complex multi-cycle index calculations
- Maintain file existence check and auto-cleanup

ComfyUI support:
- Add fallback to 'parameters' field in PNG metadata
- Improve detection for ComfyUI-generated images

Frontend improvements:
- Smart prompt display: auto-detect tag vs natural language format
- Add getTextLength() with Chinese character weight (1 char = 3 letters)
- Refactor isTagStylePrompt() with clear rules:
  * Any tag length > 50  natural language format
  * Average tag length > 30  natural language format
- Natural language prompts shown as paragraphs
- Tag-style prompts shown as badges
- Better support for Chinese/English mixed content

Build:
- Update frontend asset references
2025-11-30 20:50:13 +08:00
..
db feat: optimize random images, improve ComfyUI detection and prompt display 2025-11-30 20:50:13 +08:00
parsers feat: implement auto-tagging feature with custom tag rules 2025-11-30 19:00:24 +08:00
api.py feat: implement auto-tagging feature with custom tag rules 2025-11-30 19:00:24 +08:00
auto_tag.py feat: implement auto-tagging feature with custom tag rules 2025-11-30 19:00:24 +08:00
dir_cover_cache.py Enhance compatibility 2024-06-23 03:44:46 +08:00
fastapi_video.py Handling potential errors during renaming 2024-05-21 06:53:39 +08:00
img_cache_gen.py Add support for pre-generating cache via startup parameters and specifying cache directory through environment variables 2024-07-08 00:07:12 +08:00
logger.py Resolved module conflict 2023-06-03 16:29:46 +08:00
plugin.py releases/iib_app_cli 2024-08-24 04:53:58 +08:00
seq.py Fix: Replace seq function with custom implementation to avoid dependency errors 2024-02-18 22:59:25 +08:00
tool.py feat: optimize random images, improve ComfyUI detection and prompt display 2025-11-30 20:50:13 +08:00
video_cover_gen.py Add support for pre-generating cache via startup parameters and specifying cache directory through environment variables 2024-07-08 00:07:12 +08:00