readJpegRawDimensions function

({int height, int width})? readJpegRawDimensions(
  1. Uint8List bytes
)

Raw stored pixel dimensions from a JPEG's SOFn marker (pre-EXIF).

Implementation

({int width, int height})? readJpegRawDimensions(Uint8List bytes) {
  return _walkJpeg<({int width, int height})>(
    bytes,
    onApp1: null,
    onSof: _readSof,
  );
}