Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is your concern about committing a binary object that is difficult to diff or not being able to recreate/edit the diagram.

Particularly in the latter cases, most of these tools embed the machine readable diagram inside of the PNG. So you can just open the PNG inside of draw.io or excalidraw (if it was created by that tool) and edit the diagram. This is because the plain text file is embedded.

It’s great that lots of tools are going this way. Notably, if you’re doing image generation with Stable Diffusion or Flux, you can just drag a PNG from ComfyUI into the ComfyUI window and get the same whole workflow. It’s a great learning tool.

As for diffs? Well, that’s hard - even if you were diffing the “source” text files for excalidraw or plantUML, a lot can change that makes it nearly impossible to understand. When all that really happened might’ve been a small styling change and moving a node.



> the plain text file is embedded

Hold the phone -- some PNG files have plain text representations embedded within? That's nuts, I had no idea!


Yeah it’s a container format. :)

Hmm, and also a super convenient exfiltration format… never thought of that.


Yeah, the most important part of versioning should be the code used to create the diagram, IMO. The result files, whether SVG or PNG, should be packaged as a "release", if you were to use Github.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: