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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 speed up MIO.ParamsFromFile (TImageEnMView get tif compression)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
pcmueller77 Posted - Jan 16 2025 : 08:39:01
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.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 17 2025 : 18:33:19


Nigel
Xequte Software
www.imageen.com
pcmueller77 Posted - Jan 17 2025 : 02:35:12
Hi Nigel, this speeds up our approach from 40 to 1 second, thanks a lot!!
With best regards, Thomas.
xequte Posted - Jan 16 2025 : 19:44:56
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