Skip to main content

Module image

Module image 

Source
Expand description

Compatibility re-exports for image decoding used by controller APIs.

The implementation lives in mj_client so native and web control surfaces share the same limits, codec behavior, and error handling.

Structs§

OptimizedImage
An image encoded in a bounded, browser-friendly representation.

Functions§

optimize_image
Decode and optimize a JPEG, PNG, or WebP image.
optimize_rgba
Optimize an 8-bit RGBA image supplied as raw pixels.