magickGetImagesBlob method

Future<Uint8List?> magickGetImagesBlob()

Implements direct to memory image formats. It returns the image sequence as a blob and its length. The format of the image determines the format of the returned blob (GIF, JPEG, PNG, etc.). To return a different image format, use MagickSetImageFormat().

Note, some image formats do not permit multiple images to the same image stream (e.g. JPEG). in this instance, just the first image of the sequence is returned as a blob.

This method runs inside an isolate different from the main isolate.

Implementation

Future<Uint8List?> magickGetImagesBlob() async => await _magickCompute(
      _magickGetImagesBlob,
      _wandPtr.address,
    );