Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Remove unnecessary trailing underscore from output filenames

Fixes

Closes #1389

Changes

  • Old format: ComfyUI_00001_.png
  • New format: ComfyUI_00001.png

Backward Compatibility

Updated get_save_image_path to recognize both old and new filename
formats, so existing files with trailing underscores will still work.

Test

Added tests-unit/folder_paths_test/test_filename_format.py

Fixes comfyanonymous#1389

Removed the unnecessary trailing underscore from output filenames.
- Old format: ComfyUI_00001_.png
- New format: ComfyUI_00001.png

Updated get_save_image_path to support both formats for backward
compatibility with existing files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trailing underscore in output file names. Why?

1 participant