‹ BackHN Continuity

Thread

Memory-Safe WebP Decoding

69 points · 28 comments · computerbuster

  1. burntcaramel · · focus · HN ↗
    I’ve compiled libwebp to WebAssembly and made a web page to use it: <a href="https:&#x2F;&#x2F;qip.dev&#x2F;webp-to-png" rel="nofollow">https:&#x2F;&#x2F;qip.dev&#x2F;webp-to-png

    You can also run the same wasm on the command line:

      npx @qip.dev&#x2F;qipx qip.dev run \
        image&#x2F;webp&#x2F;webp-to-ktx2-r8g8b8a8-srgb.wasm \
        image&#x2F;ktx2&#x2F;ktx2-r8g8b8a8-or-b8g8r8a8-srgb-to-png.wasm \
        &lt; input.webp &gt; output.png
    1. computerbuster · · focus · HN ↗
      Do you have performance numbers versus libwebp?
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.