magickOptimizeImageTransparency method

Future<bool> magickOptimizeImageTransparency()

MagickOptimizeImageTransparency() takes a frame optimized GIF animation, and compares the overlayed pixels against the disposal image resulting from all the previous frames in the animation. Any pixel that does not change the disposal image (and thus does not effect the outcome of an overlay) is made transparent.

WARNING: This modifies the current images directly, rather than generate a new image sequence.

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

Implementation

Future<bool> magickOptimizeImageTransparency() async => await _magickCompute(
      _magickOptimizeImageTransparency,
      _wandPtr.address,
    );