File Size Problem From Single Page Tiffs to Multiple Page Tiff
Posted: 2016-04-12T08:38:58-07:00
Hi everyone,
I am now study how to save many single page tiff to a mutiple page tif in.NET
Below is the code I used:
For the 26 single page tiff, they are color tif file
It does convert to a mutiple page tiff. However, the size of the mutiple page tif is much larger than the 26 single page tif file.
For each single page tif file, the file size is around 300-400KB, total size of 26 tif is around 8MB
But the file size of the output mutiple page 600Mb.
I tried to use Group4 Compression, it can make the output mutiple page tiff to around 7MB.
But it turns the image into black and white and the conversion time is so much longer (over 90s).
Another Compression Method I tried is LZW, it is faster but still the output file size is around 100MB
Is it the right way to convert single page tiff to mutiple page tiff?
What are the factors contributing to the large file size of the multiple page tiff?
And what are the possible solutions to
1. Make the output file size become small
2. Keep the original color
3. Make the conversion process faster
Finally, I upload an image of the metadata of the single page tif image.
https://dl.dropboxusercontent.com/u/89484328/19.png
I am now study how to save many single page tiff to a mutiple page tif in.NET
Below is the code I used:
For the 26 single page tiff, they are color tif file
Code: Select all
using (MagickImageCollection collection = new MagickImageCollection())
{
for (int i = 0; i < 26; i++)
{
MagickImage img = new MagickImage(i + ".tif");
collection.Add(img);
}
collection.Write("out.tif");
}
For each single page tif file, the file size is around 300-400KB, total size of 26 tif is around 8MB
But the file size of the output mutiple page 600Mb.
I tried to use Group4 Compression, it can make the output mutiple page tiff to around 7MB.
But it turns the image into black and white and the conversion time is so much longer (over 90s).
Another Compression Method I tried is LZW, it is faster but still the output file size is around 100MB
Is it the right way to convert single page tiff to mutiple page tiff?
What are the factors contributing to the large file size of the multiple page tiff?
And what are the possible solutions to
1. Make the output file size become small
2. Keep the original color
3. Make the conversion process faster
Finally, I upload an image of the metadata of the single page tif image.
https://dl.dropboxusercontent.com/u/89484328/19.png