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
 speed up MIO.ParamsFromFile (TImageEnMView get tif compression)
 New Topic  Reply to Topic
Author  Topic Next Topic  

pcmueller77

14 Posts

Posted - Jan 16 2025 :  08:39:01  Show Profile  Reply
Hi and a happy new year!

We use the following code to get the tiff compression of a file:


//get compression
      iemv1.MIO.ParamsFromFile(current_file);
      originalTIFFCompression := iemv1.MIO.Params[0].tiff_compression;
//load file
      iemv1.LoadFromFileOnDemand(current_file);



this is very slow if the file is large (+700 pages per tiff)
How can we speed up this, because its okay to load the compression for the first page for us?

Thanks & with best regards, Thomas.

xequte

38730 Posts

Posted - Jan 16 2025 :  19:44:56  Show Profile  Reply
Hi Thomas

How about if you use an TImageEnIO object.

io := TImageEnIO.Create(nil);
io.ParamsFromFile(current_file);
originalTIFFCompression := io.Params.tiff_compression;
io.Free();


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

pcmueller77

14 Posts

Posted - Jan 17 2025 :  02:35:12  Show Profile  Reply
Hi Nigel, this speeds up our approach from 40 to 1 second, thanks a lot!!
With best regards, Thomas.
Go to Top of Page

xequte

38730 Posts

Posted - Jan 17 2025 :  18:33:19  Show Profile  Reply


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