Discover Packages
github.com/yklcs/wasmimg
mozjpeg
package
Version:
v0.0.0-...-d85901e
Opens a new window with list of versions in this module.
Published: Jul 2, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package mozjpeg implements image encoding/decoding through MozJPEG compiled to WASM.
Package mozjpeg implements image encoding/decoding through MozJPEG compiled to WASM.
Decode reads JPEG data and returns a RGB-encoded byte slice.
Encode reads RGB data and returns a JPEG-encoded byte slice.
The width and height of the original image must be provided,
together with the JPEG compression quality (0-100).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.