readJpegExifOrientation function
Reads the EXIF Orientation tag (TIFF 0x0112) from a JPEG byte buffer. Returns 1..8 per the TIFF/EXIF convention, or 1 if not present.
Implementation
int readJpegExifOrientation(Uint8List bytes) {
return _walkJpeg<int>(bytes, onApp1: _readFromApp1, onSof: null) ?? 1;
}