A While ago, I created a TIFF Merge and Split Utility that can be used to merge multiple TIFF files into a single file or split a multi-frame TIFF file into multiple single-frame TIFF files. A few people had run into some issues (e.g. "Parameter is not valid." exception) using the utility. After some investigation, it turned out that the cause seemed to be related to the EncoderValue I used (CompressionCCITT4). Apparently, it does not work on all computers.

To get around this issue, you will need to change the ENCODING_SCHEME (in MSUtil.cs, line 49) to

EncoderValue.CompressionLZW

The draw back is that the compression ratio of this compression scheme is pretty poor and the merged TIFF file is significantly larger.

 

Be Sociable, Share!