ImwriteWEBPLosslessMode
import { ImwriteWEBPLosslessMode } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
Imwrite WEBP specific values for IMWRITE_WEBP_LOSSLESS_MODE parameter key.
Constructors and members
static IMWRITE_WEBP_LOSSLESS_OFF
Lossy compression mode. Uses IMWRITE_WEBP_QUALITY to control compression. (Default)
IMWRITE_WEBP_LOSSLESS_OFF: ImwriteWEBPLosslessModeValue<0>,static IMWRITE_WEBP_LOSSLESS_ON
Standard lossless compression. May modify or discard RGB values of fully transparent pixels to improve compression ratio.
IMWRITE_WEBP_LOSSLESS_ON: ImwriteWEBPLosslessModeValue<1>,static IMWRITE_WEBP_LOSSLESS_PRESERVE_COLOR
Exact lossless compression. Preserves all RGB data even for pixels with 0 alpha (equivalent to WebP's exact flag).
IMWRITE_WEBP_LOSSLESS_PRESERVE_COLOR: ImwriteWEBPLosslessModeValue<2>These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.