You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose the JPEG previews stored in the file (a NEF holds several, of different sizes) without decoding any raw pixel.
Proposal
RawFile.ReadPreviewJpegAsync(CancellationToken) returns the bytes of the largest preview, or null when the file has none; a way to list the available previews (size, byte count).
Reads only the bytes of the preview (one read), into memory owned by the caller or pooled.
Acceptance criteria
Works for little- and big-endian files, with several previews, with none, and with a preview that extends beyond the end of the file (CorruptRawFileException).
Allocation budget checked by a test; benchmark added.
Activity
sputier commentedon Nov 18, 2026
Done in #15.