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
 open and save the file with the same size as the original
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
81 Posts

Posted - May 07 2023 :  15:39:19  Show Profile  Reply
Hello,

When opening a Tif file in an ImageEnMView Using
imgNova.MIO.LoadFromFileTIFF
when saving that same file, without any changes it is bigger (in MB) than the original file, how can I keep the same size (in MB) of my original file?

Thanks

xequte

38611 Posts

Posted - May 07 2023 :  20:54:11  Show Profile  Reply
Hi

ImageEn should save a TIFF identical to how it is loaded. The exception would be where it uses a compression that cannot be supported when saving.

There was also an issue before v12.0.0 where an Alpha channel could trigger the changing of the compression method.

Can you link to the file so I can test it.



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

AndNit

Brazil
81 Posts

Posted - May 10 2023 :  05:50:40  Show Profile  Reply
Here's an example, remembering that I open the images through an ImageEnMView.


https://drive.google.com/drive/folders/1e5xqNrcVEOQRV-xiiG8DCzkvZetLCay6?usp=share_link

Thanks
Go to Top of Page

xequte

38611 Posts

Posted - May 10 2023 :  19:17:55  Show Profile  Reply
Hi

This TIFF image is using JPEG compression, so its saving size is determined by the JPEG Quality property:

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

However JPEG is lossy format, so you should not re-save unless necessary. If you are only modifying some of the images of the TIFF, then you are better to just update the TIFF file with the changed images, rather than resaving the whole file:

http://www.imageen.com/help/TImageEnIO.InsertToFileTIFF.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: