The input files are 8-bit greyscale jpegs. When I merge these using
Code: Select all
oGdPictureImaging.TiffMergeFileList(fileList, outputFile, TiffCompression.TiffCompressionAUTO
The same happens if I change to TiffCompressionLZW or TiffCompressionJPEG or if I use a different merging-procedure than TiffMergeFileList, like a sequence of TiffCreateMultiPageFromFile->TiffAppendPageFromFile->TiffSaveAsMultiPageFile->ReleaseGdPictureImage
On my development machine (Windows 7 64-bit) the filesize is reduced slightly (as corresponds to the reduction of header-information I assume). In the production environment (Windows 2008 Standard SP2 64-bit) the generated file is approximately twice the size of the original files however. Which is a problem since I'm doing this for tens of thousands of files.
So my questions are:
1) Why does this happen?
2) How do I deal with it so that the resulting file in the production environment results in the same filesize as on my development environment?