Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

無法完整查看 sd 生成的圖片資訊 #39

Open
bluelovers opened this issue May 15, 2024 · 3 comments
Open

無法完整查看 sd 生成的圖片資訊 #39

bluelovers opened this issue May 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@bluelovers
Copy link

tmp6e0pjrdn

image

參考
https://github.com/bluelovers/auto1111-pnginfo/blob/main/src/split.ts

@hbl917070 hbl917070 added the bug Something isn't working label May 16, 2024
@hbl917070
Copy link
Owner

我把 A1111 更新到 v1.9.3,也無法重現你這張圖的 以 \x00\x00\x00 表示 \n 的情況
Tiefsee 使用 metadata-extractor-dotnet 來提取 png info
然而這個套件會將連續3個 \x00 被視為區塊結束的意思,所以才會無法讀出完整資訊

如果這是一個自創的格式,那我想這個做法的相容性可能還需要評估

以 v1.9.3 A1111 來讀取這張圖, \x00 將會直接被顯示出來
image

@bluelovers
Copy link
Author

bluelovers commented May 17, 2024

恩 \x00 這部分可以無視
但例如 civitai 這個網站能夠不受 \x00 影響依然解析成功

@hbl917070
Copy link
Owner

如果這不是正式在某一個專案上的設計,我這邊就先不做處理
要處理的話,就變成要為了這個專有格式另外寫一個這個特殊格式專用的 png info 提取器

或是你可以把 bug 回報至 metadata-extractor-dotnet,如果能正常提取 png info,那 Tiefsee 就能解析這個格式
https://github.com/drewnoakes/metadata-extractor-dotnet/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants