neurolink icon indicating copy to clipboard operation
neurolink copied to clipboard

IMG-015: Incomplete JPEG Dimension Extraction

Open murdore opened this issue 1 month ago • 0 comments

Summary

getImageDimensions() returns null for JPEGs instead of parsing SOF markers.

Root Cause

Lines 323-327 don't parse SOF0 (0xFFC0) or SOF2 (0xFFC2) markers.

Fix

Parse SOF markers to extract width/height from JPEG files.

Acceptance Criteria

  • [ ] Implement SOF marker parsing
  • [ ] Search for 0xFFC0 and 0xFFC2 markers
  • [ ] Extract width and height from SOF marker data
  • [ ] Handle edge cases (no SOF marker, truncated file)

murdore avatar Dec 01 '25 08:12 murdore