encodeImageWith method
Encodes input, offering runner the parts that can run independently.
The result is always identical to encode's. Formats whose encoder has
no independently encodable pieces ignore runner and encode inline,
which keeps the entry point uniform across codecs.
Implementation
Future<Uint8List> encodeImageWith(
ParallelRunner runner,
Image input,
Options options,
) async => encode(
input,
encodeOptions: options,
);