TiffLibrary icon indicating copy to clipboard operation
TiffLibrary copied to clipboard

Add the possibility to inject a ITiffPixelBufferReader to optimize large tile based tiffs

Open donin1129 opened this issue 1 year ago • 0 comments

I encountered a problem encoding a very large tiled image. First there is a performance issue forcing the usage of MemoryBuffer. Second, the MemoryBuffer has max array size that is System.Int32.MaxValue.

In this commit, I added the following:

  • Keep ITiffPixelBufferReader as abstract as possible until necessary for a cast.
  • Allow injection of IPartialBufferProvider.
  • Provide test / example how to use IPartialBufferProvider to optimize the buffer preparation speed.
  • All tests run green.

donin1129 avatar Mar 11 '24 16:03 donin1129