News for hackers. Stuff that matters.

jihchi

Re:Show HN: Turn raw HTML into production-ready images for free on Wednesday December 24, 2025 @01:22AM (#46372996)
This is cool! One use case is generating a Mermaid diagram as an image. For example, you can use the following HTML[^1]:

  <!doctype html>
  <html lang="en">
    <body>
      <pre class="mermaid">
    graph LR
        A --- B
        B-->C[fa:fa-ban forbidden]
        B-->D(fa:fa-spinner);
      </pre>
      <script type="module">
        import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
      </script>
    </body>
  </html>
Then html2png.dev will serve you:

  https://html2png.dev/api/blob/oTVGhhCc6rDZYQFDIE3EGkcKs-KO6J9-_DHs-jO2OJc-d23fb4f2.png
[^1]: https://mermaid.js.org/config/usage.html#simple-full-example
Re:Show HN: A Fast HTTP Request CLI Powered by HTTL on Thursday February 20, 2025 @01:11AM (#43111645)
It looks similar to https://hurl.dev
Re:New(ish) command line tools on Wednesday April 13, 2022 @02:29AM (#31011782)
Re:Show HN: Berkeley Mono Typeface on Monday March 07, 2022 @11:01AM (#30589370)
I'd love to join the group buy if it is possible
Were you comparing two identical image? Could you try two different image?