Live data from Hacker News

Truly Headless Draw.io Exports

fasterthanli.me

1–10 of 26 posts

Re: Truly Headless Draw.io Exports

#6
post #5
post #2

Drawio is great, I particularly love how you can export a png and include the drawio source embedded in the png.

Just like Macromedia Fireworks in 1998!

I have glorious memories of using Macromedia Fireworks at that time. I was 13 years old in 1998. I wish I had a better idea of why I loved it so much but I don’t recall what was different between it and Photoshop.

Re: Truly Headless Draw.io Exports

#7
post #2

Drawio is great, I particularly love how you can export a png and include the drawio source embedded in the png.

It is one of the great features that makes it my first choice for drawings.

I've used it for the png diagrams on a bit I wrote about the skip list ( https://shagie.net/2015/05/18/the-skip-list/ ) so that I could go back and be able to manipulate the drawing that its based on (import from - url - https://shagie.net/wp-content/uploads/2015/05/Untitled-Diagr... ) rather than the pixels in the image.

Re: Truly Headless Draw.io Exports

#8
post #2

Drawio is great, I particularly love how you can export a png and include the drawio source embedded in the png.

That is indeed a killer feature.

One file that displays universally on all browsers or image-viewers while still also being the file that you can easily edit. I've also noticed it doesn't make the file that much bigger. (1-10KiB with some of my larger drawings)

Re: Truly Headless Draw.io Exports

#9
The first SVG export's problem was just that it had a transparent background. Chrome's default background is white, and so it draws the transparency on top of white, which is why the SVG looks fine in Chrome. Eye of Gnome displays transparency as a checkboard pattern, just like Gimp, Photoshop and many other image editors.

Re: Truly Headless Draw.io Exports

#10
post #2

Drawio is great, I particularly love how you can export a png and include the drawio source embedded in the png.

You can even export a SVG that embeds the drawio source. This is how I make diagrams for my projects: I can display them directly from my README, and after editing them in Draw.io's Visual Studio Code extension, I don't have to go through another export step.
Post reply on HN