wasm-image-decoder | Decodes images using Rust 's ` image ` crate
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.
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
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.
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
Quality
wasm-image-decoder has no bugs reported.
Security
wasm-image-decoder has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
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.
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
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wasm-image-decoder
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:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page