ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Compress color tiff
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
81 Posts

Posted - Jul 20 2023 :  12:29:48  Show Profile  Reply
Hello,

What's the best way, the one to make the tif file as small as possible, without much loss, to compress a color image?

I'm using the following code:

ImageEnMView1.MIO.Params[b].TIFF_Compression := ioTIFF_JPEG;
ImageEnMView1.MIO.Params[b].JPEG_Quality := 50;

however, while this multpage tif file in black and white is 1.37 MB the same file, with the same amount of pages, is 15,840 MB when colored. I need to reduce the size of this file as much as possible

thanks

xequte

38616 Posts

Posted - Jul 20 2023 :  23:14:25  Show Profile  Reply
Hi

For full color images, ioTIFF_JPEG is likely to give the best compression, due to its lossy nature (naturally full color images will take up significantly more disk space than 2 color ones).

Note though, for TIFF compressed with ioTIFF_JPEG, you specify the quality with TIFF_JPEGQuality (not JPEG_Quality):

https://www.imageen.com/help/TIOParams.TIFF_JPEGQuality.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

AndNit

Brazil
81 Posts

Posted - Jul 24 2023 :  08:57:05  Show Profile  Reply
excellent, made all the difference.

thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: