HNHacker News
TopNewBestAskShowJobs

jihchi

9 karma · joined April 18, 2014

submissionscomments
jihchi··on Show HN: Turn raw HTML into production-ready images for free
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
jihchi··on Show HN: A Fast HTTP Request CLI Powered by HTTL
It looks similar to https://hurl.dev
jihchi··on New(ish) command line tools
https://news.ycombinator.com/item?id=31009609 hurl looks good
jihchi··on Show HN: Berkeley Mono Typeface
I'd love to join the group buy if it is possible
jihchi··on Imgdiff: Faster than the fastest pixel-by-pixel image difference tool
Were you comparing two identical image? Could you try two different image?