News for hackers. Stuff that matters.
Re:MSPaint in JavaScript by therein on Tuesday February 25, 2020 @05:46PM (#22418349)
It could be a really large render of a `dot` graph. That's the only kind of 5GB PNGs I've had to work with.

While on that topic, anyone have any good ideas in situations like that? Rendering a really large SVG from scratch is not feasible, also most SVG renderers actually fail on really large SVGs in my experience. I've always had to export as PS or just direct render into PNG.

Re:MSPaint in JavaScript by Cu3PO42 on Wednesday February 26, 2020 @04:07AM (#22421536)
I recently had a graph that dot refused to render to PNG since its maximum buffer was too small. A scaling factor that made it fit also made it unreadable.

We rendered to a 500MB SVG and opened it in Firefox, which worked quite well after the initial load. Bonus: we used the dev tools to navigate the thing.