Live data from Hacker News

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

html2png.dev

41–50 of 87 posts

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

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

Thank you. Can add png compression too right.

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

#44
This looks interesting though niche -- am yet to think of a compelling use case.

I am sure @simonw has some ideas :) -- he recently blogged about HTML tools which is also one or my favorite use cases for LLMs.

Maybe similar to SVG generation, this could be a more powerful / flexible way to generate complex images / screen mockups and the like on-the-fly.

PS: How do the economics work -- how is this free to use?

PS2: The live HTML editor seems buggy. Cursor is off by one position and messes up editing. (chrome on windows)

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

#45

Playwright behind a web server?

well, you can create an image that reports the internal, this is what i got:

  - IP: 104.28.157.29
  - Org: Cloudflare (AS13335)
  - Location: Narita, Chiba, Japan
  - Browser: Chrome 126.0.0.0 headless
  - Automation: Puppeteer/Playwright
  - navigator.webdriver: true
  - Platform: Linux x86_64
  - CPU cores: 4
  - WebGL: ANGLE + Vulkan 1.3.0 + SwiftShader
  - GPU: SwiftShader (software rendering)
  - Screen: 1024x768 virtual
  - DevicePixelRatio: 2
  - Color depth: 16 bit
  - Window: 500x88 outer (headless)
  - Languages: en-US
  - Plugins: 5
  - Frontend: Nuxt.js
  - Storage: ephemeral blob

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

#46
post #24

Earlier quoted context omitted.

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.

Ah haha. I love this conversation of trying to find a product market fit in public.

What if the input to the JavaScript (mermaid in this case) is not trusted to run on the end client machines but by running untrusted input on a sandbox (this service, or self hosted idk) is somehow acceptable and the output a blob of an image is acceptable to display on the actual client machines.

Takes the planets to align just right and need us to squint just enough but I think we can find something if we look hard enough.

But then mermaid can simply output PNG so you could run it as a worker... Thinking...

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

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

Won't you need to install extra libraries for these?

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

#48

Earlier quoted context omitted.

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?

[deleted]
Post reply on HN