Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 25th, 2006, 10:46 AM
Registered User
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default tiff compression

How do I specify which compression I want to use for saving images? My code so far is:

//System.Drawing.Image img = some code for creating image object
img.Save(path, System.Drawing.Imaging.ImageFormat.Tiff);

The problem is that when I save the image object like this, it doesn't show in some piture editors.... The file opens, but the error is: Decompression library not available.

How do I solve this? And, yes, I HAVE TO save files in tiff format, and I cannot use jpeg or gif formats.

Old December 4th, 2013, 02:42 AM
Registered User
Join Date: Aug 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Hi, sandrina.
Sorry for the late reply. Have you found your way out? I have ever tried to
compress Tiff images with the help of following code:
Yiigo.Imaging Image = new Yiigo.Imaging();
TiffEncoder = TiffEncoder.Group3Encoding;
Image.TiffEncoder(@"C:\1.tif", "C:\2.tif", TiffEncoder TiffEncoder.Group3Encoding);
Or you can also google it and select a fine imaging SDK whose way of processing is simple and fast to help you with the related work. Remember to check its free trial package first if possible. I hope you success. Good luck.

Best regards,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compression changes on single tiff image hutchison1 Pro Visual Basic 2005 0 May 11th, 2007 03:28 PM
Compression on TIFF files hutchison1 VB How-To 0 May 11th, 2007 02:51 PM
Change TIFF Compression type from JPEG to Group 4 thazanur@yahoo.co.in C# 0 March 7th, 2007 07:36 AM
Image Compression 4wrh VB How-To 5 May 24th, 2005 05:39 PM
compression jaya_malini Java GUI 0 May 5th, 2005 10:01 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.