Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
persa  
#1 Posted : Wednesday, December 07, 2005 2:35:49 AM(UTC)
persa

Rank: Member

Groups: Member
Joined: 12/1/2005(UTC)
Posts: 3

I have a question about TIF images and saving with Lzw compression. I have tried saving a test image with this code:
Code:
bitmap = new Bitmap(@"c:\test.jpg");

bitmap.Save(@"c:/test_lzw.tif", new Aurigma.GraphicsMill.Codecs.TiffEncoderOptions(CompressionType.Lzw));

bitmap.Save(@"c:/test_none.tif", new Aurigma.GraphicsMill.Codecs.TiffEncoderOptions(CompressionType.None));
The problem is that the image saved with Lzw compression is slightly larger than the one saved without compression! The files are 29998 kb for Lzw, 29363 kb when no compression at all is used and 22251 kb if Zip compression is used. If the same image is loaded in Adobe Photoshop and save with Lzw compression it results in a size of 17615 kb. Do I have to activate Lzw compression in some other way? /Per Salmi

Edited by user Sunday, December 23, 2007 4:45:35 PM(UTC)  | Reason: Not specified

Dmitry  
#2 Posted : Friday, December 09, 2005 12:28:30 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello, Could you submit case with source image which you want to save with LZW compression?

Edited by user Friday, May 23, 2008 1:34:17 PM(UTC)  | Reason: Not specified

Sincerely yours, Dmitry Sevostyanov UserPostedImage Follow Aurigma on Twitter!
vitaly  
#3 Posted : Thursday, June 13, 2013 1:14:25 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello nesca, You can compress TIFF with Graphics Mill SDK 6 like this:
Code:

var reader = new Aurigma.GraphicsMill.Codecs.TiffReader(@"C:\Users\vitaly.MAIN\Pictures\xmp.tif");
            var writer = new Aurigma.GraphicsMill.Codecs.TiffWriter(@"C:\Users\vitaly.MAIN\Pictures\xmp_out.tif");
            writer.Compression = Aurigma.GraphicsMill.Codecs.CompressionType.Lzw;
            Aurigma.GraphicsMill.Pipeline.Run(reader + writer);
Best regards, Vitaly Kustov Aurigma Technical Support
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.