Live data from Hacker News

Show HN: Turn raw HTML into production-ready images for free

html2png.dev

31–40 of 87 posts

Re: Show HN: Turn raw HTML into production-ready images for free

#32
post #24

Earlier quoted context omitted.

Why wouldn’t you just use Mermaid to generate the PNG directly?

One reason I could think of: Fewer dependencies that need integration

By introducing a dependency on a third-party service with no SLA? This seems to make the dependency situation worse.

Re: Show HN: Turn raw HTML into production-ready images for free

#34
post #9

What differentiates production-ready images from regular images?

They're bedazzled by a little bit of marketing flair. Generally I find production-ready images have more synergy and tend to be web-scale. Often they're built from the ground up for AI & are blazing fast, at scale, and empower your team whilst unlocking new possibilities. As my sibling comment suggests, being cloud-native is a crucial factor too.

If I need more flair can I embed the image in a new html page and then create another image from that?

Re: Show HN: Turn raw HTML into production-ready images for free

#36
post #31

It's nice looking for sure but much more complex than using `wkhtmltox` with `pngquant`, `optipng` and/or ImageMagick `convert` locally - esp. since the learning curve seems to be about equivalent.

Yeah, I thought that as well. So I was wondering if that's some kind of a joke, or maybe modern html is so fucked up that all usual solutions became obsolete since the last time I did that.

Re: Show HN: Turn raw HTML into production-ready images for free

#38
post #9

What differentiates production-ready images from regular images?

It's not an image—it's an image on the edge. No cruft. No legacy formats. Just buttery smooth production readiness.

> buttery smooth

But buttery bloated if the images don't run OptiPNG before exporting.

Re: Show HN: Turn raw HTML into production-ready images for free

#40
post #30

Congrats on launching, beautiful design. I'm not sure of what "production ready" is supposed to mean here, but the demo image is not optimized, `optipng` command decreases its size by 53.21%.

also don't ignore webp and avif ... those can really do wonders.
Post reply on HN