startDecode method

  1. @override
TiffInfo? startDecode(
  1. List<int> 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(List<int> bytes) {
  _input = InputBuffer(bytes);
  info = _readHeader(_input);
  if (info != null) {
    exif = ExifData.fromInputBuffer(InputBuffer(bytes));
  }
  return info;
}