thumbhash library
Functions
-
rgbaToBmp(
Image image) → Uint8List -
rgbaToThumbHash(
int w, int h, Uint8List rgba) → Uint8List - Encodes an RGBA image to a ThumbHash. RGB should not be premultiplied by A.
-
thumbHashToApproximateAspectRatio(
Uint8List hash) → double - Extracts the approximate aspect ratio of the original image.
-
thumbHashToAverageRGBA(
Uint8List hash) → RGBA - Extracts the average color from a ThumbHash. RGB is not be premultiplied by A.
-
thumbHashToRGBA(
Uint8List hash) → Image - Decodes a ThumbHash to an RGBA image. RGB is not be premultiplied by A.