tlnagy / OMETIFF.jl

I/O operations for OME-TIFF files in Julia
Other
24 stars 7 forks source link

Tracking of IFD offset across separate files is very brittle #72

Closed tlnagy closed 4 years ago

tlnagy commented 4 years ago

The current strategy for tracking IFD offsets across separate files is brittle. I need to store the offset the first time I encounter a new file and then add this offset to each IFD in that file. Currently, this causes multiposition files that are larger than 4gigs to fail silently.

This logic needs to be replaced:

https://github.com/tlnagy/OMETIFF.jl/blob/ddec9992399c8f7c58a1dad319c3aca08195d20e/src/parsing.jl#L81-L86

Ideally, going forward obs_filepaths should also store the offset so the lookup is quick.