Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Urgent...Image compression!
Started by basheerco at 05-14-2008 9:23. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  05-14-2008, 9:23
basheerco is not online. Last active: 9/7/2008 12:39:17 PM basheerco

Not Ranked
Joined on 05-08-2008
KSA
Posts 4
Urgent...Image compression!
Reply Quote

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




   Report 
  05-14-2008, 10:18
Yasir Alani is not online. Last active: 9/28/2008 9:11:17 AM Yasir Alani



Top 25 Posts
Joined on 02-05-2007
Posts 231
Re: Urgent...Image compression!
Reply Quote

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.


Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
  05-21-2008, 2:40
basheerco is not online. Last active: 9/7/2008 12:39:17 PM basheerco

Not Ranked
Joined on 05-08-2008
KSA
Posts 4
Re: Urgent...Image compression!
Reply Quote
thanks,
i get your point ,now it's working fine ,thanks again for your fast help.

   Report 
Post
LEAD Support Fo... » Developer » Image Compressi... » Urgent...Image compression!

Powered by Community Server, by Telligent Systems