Live data from Hacker News

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

html2png.dev

81–87 of 87 posts

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

#81
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%.

IME it’s a term that’s been popularized by generative AI solutions, a meme at this point, and doesn’t speak to real production readiness quantifiably (professionally). It’s something that I’ve seen models frequently claim during coding and planning sessions, and it can also be found around Reddit/Twitter/Github vibe coding spaces.

Seeing this term in marketing materials signals that the target audience is non-professionals (and I don’t mean this derisively, only that we need to apply a different lens).

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

#82
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.

All you had to drop was “web scale”, so much meaning compressed into that :)

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

#83
post #61

Sharing in case anyone isn't familiar with this built-in capability: google-chrome --headless --screenshot=my_screenshot.png https://www.example.com

It looks like this app has helpful functions for size, format, and transparency that you can't do with the built in chrome command all at once without probably piping it through inagemagik or something. And even then maybe this site renders the html responsively before rasterizing.

Actually Chrome does everything. Not via command-line switches however, you need to use the DevTools protocol. For example using Playwright. You get PDFs and PNGs of any size and resolution (PPI).

And I guess this is exactly what this service does under the hood.

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

#84
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%.

Curious - How did you find the image is not optimized? Is there a tool to find it?

I ran the command 'optipng' on the generated image, which recompresses the image optimally, keeping quality and decreasing file size.

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

#87
post #83

Earlier quoted context omitted.

It looks like this app has helpful functions for size, format, and transparency that you can't do with the built in chrome command all at once without probably piping it through inagemagik or something. And even then maybe this site renders the html responsively before rasterizing.

Actually Chrome does everything. Not via command-line switches however, you need to use the DevTools protocol. For example using Playwright. You get PDFs and PNGs of any size and resolution (PPI). And I guess this is exactly what this service does under the hood.

This is interesting. If I have DevTools open, is there JS I can run to execute the PNG generation?
Post reply on HN