Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, May 14, 2008 4:18:01 AM(UTC)

Groups: Registered
Posts: 4

I am using Leadtools 15 .! how can i compress tiff file ?

I have tried to use this command but the size is still too big.

codecs.Save(image, filename, RasterImageFormat.Tif,
8, 1, image.PageCount, 1, Leadtools.Codecs.CodecsSavePageMode.Overwrite);

let suppose if you have file it size 2.7 MB after compression how should be it size?

please help me, and if you have a code tha't more wonderful..

a waiting your replay


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, May 14, 2008 5:13:40 AM(UTC)

Yasir Alani  

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I understand from your code that you want to save as 8-bit
(grayscale or color) TIF. However, using the RasterImageFormat.Tif file type saves images as TIF without compression.


To save as compressed 8-bit TIF, then you can use any of these constants:

1. TifLzw (LZW Compression and RGB color space)

2. TifJpeg (JPEG compression and YUV 4:4:4 color space Lossless)

3. TifJpeg422 (JPEG compression and YUV 4:2:2 color space)

4. TifJpeg411 (JPEG compression and YUV 4:1:1 color space)

5. TifCmp (CMP Compression)

6. TifJbig (JBIG Compression)

7. TifJ2k (JPEG 2000 Compression)

8. TifCmw (Wavelet CMP Compression)


There are also other compressed TIFF sub-types but they work with bits per pixel values other than 8.


For more details, please read the help topic "File Formats: TIFF (Tagged Image File Format)" in the Raster .NET help file.

#3 Posted : Tuesday, May 20, 2008 9:35:22 PM(UTC)

Groups: Registered
Posts: 4

i get your point ,now it's working fine ,thanks again for your fast help.
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.091 seconds.