Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am looking for some sample code (C#) compress a multipage TIFF file without using third party libraries. I tried to do it by using Image.SaveAs() method, but at the end i got a file with much bigger size than the original.
Posted
Comments
Sergey Alexandrovich Kryukov 22-May-13 14:29pm    
Your reference to the size does no tell anything. Compression can be different. It has nothing to do with multipage feature.
—SA

1 solution

The hard-part is "without using third party libraries". What, not even open-source?

Actually, the issue is very simple. You don't want to use any third party library. All right, but you still need a library. As .NET FCL does not have the library supporting the multipage TIFF feature, you have to write such library by yourself.

Well, try this CodeProject work: Save images into a multi-page TIFF file or add images to an existing TIFF file[^].

The delicate question is: if you use this code and it will help you, will you consider yourself using a 3rd-party library or not? :-)

If it is a problem or my notes makes you thinking about it, still consider this open-source library: http://bitmiracle.com/libtiff/[^].

Just in case you wanted to think about it.

—SA
 
Share this answer
 
Comments
Espen Harlinn 22-May-13 15:44pm    
5'ed!
Sergey Alexandrovich Kryukov 22-May-13 16:12pm    
Thank you, Espen.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900