wasm-image-decoder | Decodes images using Rust 's ` image ` crate

 by   josephrocca JavaScript Version: v0.0.6 License: MIT

kandi X-RAY | wasm-image-decoder Summary

kandi X-RAY | wasm-image-decoder Summary

wasm-image-decoder is a JavaScript library typically used in Binary Executable Format applications. wasm-image-decoder has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Decodes images using Rust's image crate compiled to WebAssembly. By default it uses 4 threads (though some decoders are single-threaded) since it doesn't seem to get much faster if I add any more. You can edit mod.js to change the number of threads. Works in the browser and in Deno. Note: This can only be used within a Web Worker due to wasm not supporting blocking/waiting operations when executed in the main thread (related comment). You can use comlink to make it easy to use this module from the main thread. As of writing it's about 3x slower than native Rust. Drawing the image to an OffscreenCanvas and then extracting the image data is the same speed as native Rust, so use that if your JS runtime has it available. The communication overhead between JS and the wasm module is negligible, so the slowness is probably due to missing functionality and lack of optimisation in wasm runtimes (e.g. thread/simd/etc. optimisations), so the performance should improve with time.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              wasm-image-decoder has a low active ecosystem.
              It has 5 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of wasm-image-decoder is v0.0.6

            kandi-Quality Quality

              wasm-image-decoder has no bugs reported.

            kandi-Security Security

              wasm-image-decoder has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              wasm-image-decoder is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              wasm-image-decoder releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wasm-image-decoder
            Get all kandi verified functions for this library.

            wasm-image-decoder Key Features

            No Key Features are available at this moment for wasm-image-decoder.

            wasm-image-decoder Examples and Code Snippets

            No Code Snippets are available at this moment for wasm-image-decoder.

            Community Discussions

            No Community Discussions are available at this moment for wasm-image-decoder.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install wasm-image-decoder

            Basic wasm-pack tutorial here: https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm. If it fails with "unable to build with the standard library", you'll need to run.

            Support

            It supports decoding PNG, JPEG, WEBP, GIF, BMP, ICO, TGA, and several others, but some formats don't have full support as of writing (Feb 2022). See here for the support table. Check the latest image-rs readme to see if there is increased support, and if so you can follow the build instructions below to build a version of this library that supports the new formats.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/josephrocca/wasm-image-decoder.git

          • CLI

            gh repo clone josephrocca/wasm-image-decoder

          • sshUrl

            git@github.com:josephrocca/wasm-image-decoder.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular JavaScript Libraries

            freeCodeCamp

            by freeCodeCamp

            vue

            by vuejs

            react

            by facebook

            bootstrap

            by twbs

            Try Top Libraries by josephrocca

            OpenCharacters

            by josephroccaHTML

            clip-image-sorter

            by josephroccaHTML

            openai-clip-js

            by josephroccaJupyter Notebook

            rwkv-v4-web

            by josephroccaJupyter Notebook

            ChatVRM-js

            by josephroccaJavaScript