pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.38k stars 104 forks source link

No support for international character encoding when saving WorkFlow Image > Export > PNG #214

Open rollingcookies opened 3 months ago

rollingcookies commented 3 months ago

Hello! Please add Unicode for saving of all text fields when exporting Workflow to PNG! Now every time I have to save both versions of Workflow in PNG and JSON, because when I open PNG all non-Latin text characters turn into garbage - it's not comfy!

pythongosssss commented 3 months ago

Can you provide an example please, using this unicode test file, the results after loading match. https://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html workflow workflow

rollingcookies commented 3 months ago

Hello! I downloaded both images in png and svg and then saved both in png. As you can see, when I opened the png, the characters opened incorrectly and I saved the result to a new png. When I opened the svg the characters were read correctly, but after saving to png and reopening, the characters open incorrectly.

workflow in png opened and resaved in png: workflow in png opened and resaved in png

workflow in svg opened and resaved in png: workflow in svg opened and resaved in png

workflow in svg opened and twice resaved in png: workflow in svg opened and twice resaved in png