| 
Rank: Member
 Groups: Guest
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 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
Joined: 8/3/2003(UTC)
 Posts: 1,070
 
 Thanks: 1 timesWas 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 | 
|  | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
		
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
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
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
    
        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.