magickThumbnailImage method

Future<bool> magickThumbnailImage({
  1. required int columns,
  2. required int rows,
})

MagickThumbnailImage() changes the size of an image to the given dimensions and removes any associated profiles. The goal is to produce small low cost thumbnail images suited for display on the Web.

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

  • columns: the number of columns in the scaled image.
  • rows: the number of rows in the scaled image.

Implementation

Future<bool> magickThumbnailImage({
  required int columns,
  required int rows,
}) async =>
    await _magickCompute(
      _magickThumbnailImage,
      _MagickThumbnailImageParams(
        _wandPtr.address,
        columns,
        rows,
      ),
    );