Create a Bigtiff (>4GB) File with Bitmiracle Libtiff.net

我的梦境 提交于 2019-12-06 06:34:05

All LibTiff.Net versions including 2.4.500.0 are based on 3.x branch of the original libtiff.

Support for BigTIFF was introduced in 4.x branch of the original libtiff. Thus, at this time there are no LibTiff.Net versions designed to handle BigTiff files / files over 4GB on disk.

EDIT:

LibTiff.Net 2.4.508 adds support for BigTiff.

cpfr

I don't have enough reputation to comment, so I'm posting this as an answer even if it does not answer the original question.

@Andreas asked in a comment

Is there a possibility to force "bigtiff" even when the size is smaller than 4gb?

and indeed there is. The trick is to pass an additional '8' to the mode parameter of the Tiff.Open method:

using (Tiff output = Tiff.Open(filePath, "w8"))

The mode parameter is described here about after the first third of the page

I downloaded the Milster repo https://github.com/Milster/libtiff.net and builded the BitMiracle.LibTiff.NET.dll myself. This worked for me!

EDIT: V. 2.4.528 worked also for me!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!