tlnagy / TiffImages.jl

💎 Pure-Julia TIFF I/O with a focus on correctness 🧐
http://tamasnagy.com/TiffImages.jl/
MIT License
54 stars 13 forks source link

Add support for limited loading as `Array` type #49

Open tlnagy opened 3 years ago

tlnagy commented 3 years ago

For packages like ImageIO where we are emitting Arrays, there should be an option for TiffImages to load the file in a simplified and compatible way, i.e. only the largest slice in a pyramidal image, etc. This would insulate users of those packages from TiffImages types and complexity.

This would be more efficient/more general than doing the conversion post-hoc.

Originally posted by @tlnagy in https://github.com/JuliaIO/ImageIO.jl/issues/25#issuecomment-827070073

johnnychen94 commented 2 years ago

A better option is to perhaps separate the pure pyramidal array definition into a lighter package so that ImageIO can depend on it.

This can be quite similar to representing an indexed image as IndirectArray. See also https://github.com/JuliaIO/ImageIO.jl/pull/48