decodeImage function

Image? decodeImage(
  1. List<int> data
)

Decode the given image file bytes by first identifying the format of the file and using that decoder to decode the file into a single frame Image.

Implementation

Image? decodeImage(List<int> data) {
  final decoder = findDecoderForData(data);
  if (decoder == null) {
    return null;
  }
  return decoder.decodeImage(data);
}