startDecode method

  1. @override
TiffInfo? startDecode(
  1. Uint8List bytes
)
override

Validate the file is a TIFF image and get information about it. If the file is not a valid TIFF image, null is returned.

Implementation

@override
TiffInfo? startDecode(Uint8List bytes) {
  _input = InputBuffer(bytes);
  info = _readHeader(_input);
  if (info != null) {
    exif = ExifData.fromInputBuffer(InputBuffer(bytes));
  }
  return info;
}