martedì 17 dicembre 2013

Merge several TIFF images to single multipage TIFF

C# .NET Framework 4.0

In my application, I have wanted to merge and compress several TIFF images to single multipage TIFF, for this purpose I used the framework Bitmap object with EncoderParameters like explained in this link http://stackoverflow.com/questions/3478292/whats-the-recommended-tiff-compression-for-color-photos/3480411#3480411 . Unfortunately, this solution was very slow! 3’:20’’ for merging of 1420 images.


So I searched in the web and I found this awesome solution http://bitmiracle.com/libtiff/help/merge-several-tiff-images-to-single-multipage-tiff.aspx : the time for merging images has dropped to 26’’! 

That’s miracle!