FaceCompressor.decompressWebp Method

Module: FaceCompressor

Definition

Decompresses a WebP buffer produced by compress_webp or compress_webp_from_cropped_portrait back into a portrait image.

Unlike decompress_ai, this is a standard WebP image decode: no compression model needs to be loaded, and the output image size matches whatever size the buffer was encoded at.

Image decompressWebp(Uint8List? data)

Parameters

data Uint8List
in The WebP-compressed image buffer.

Returns

The decompressed 24-bit BGR portrait image.

Exceptions

An error has occurred during Face Library execution.