保留原素材名字,增加文件自动命名逻辑 - #183
Open
ImVeyon wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
保留原素材名字,增加文件自动命名逻辑,便于归类
具体规则:
1单图参考
保留素材的名字作为主体名,然后追加新的“分钟级时间 + 新哈希”
例如:
风景图-20260731-1602-b47d9a.png
2两张参考图
把两张素材名拼接起来,中间用下划线连接,再追加新的“分钟级时间 + 新哈希”
例如:
风景图_人物图-20260731-1602-b47d9a.png
3超过两张参考图
只保留前两张素材名,再加上“等N图”,最后追加新的“分钟级时间 + 新哈希”
例如 5 张图参考时:
风景图_人物图_等5图-20260731-1602-b47d9a.png
不会重复叠加旧时间和旧哈希
最终效果:名字可读、不会无限变长、还能区分不同生成结果。
PS: 小白第一次递交PR, 用codex烧了3000多万token,有不对的地方,大家多帮忙改改