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
 ImageCacheUseDisk bug
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

giancarlo

Italy
65 Posts

Posted - Sep 08 2016 :  07:58:24  Show Profile  Reply
i want to cache on disk the thumbnails for a faster directory reload but the cache disk do not works... i cannot find a .db file in each folder.
this my setup:

  ImageEnMViewLista.ImageCacheUseDisk:=true;
  ImageEnMViewLista.ImageCacheSize:=100;
  ImageEnMViewLista.EnableImageCaching:=true;


i've also tried using snapshots but the fillfromdirectory is too slow.

      if FileExists(ShellTreeView1.SelectedFolder.PathName+'\thumbfast.db') then
      begin
        ImageEnMViewLista.LoadSnapshot(ShellTreeView1.SelectedFolder.PathName+'\thumbfast.db');
      end else
      begin
        ImageEnMViewLista.FillFromDirectory(ShellTreeView1.SelectedFolder.PathName);
        ImageEnMViewLista.SaveSnapshot(ShellTreeView1.SelectedFolder.PathName+'\thumbfast.db',true,true,false);
      end;


what i wrong?
what is the best practice to use a similar windows's thumbs.db?

thank you
gian

xequte

38615 Posts

Posted - Sep 08 2016 :  15:52:36  Show Profile  Reply
Hi Gian

ImageEn does not use a thumbs.db files for its image cache, and the image cache is not persistent (it is cleared when the application is shutdown).

You might prefer to have your app use the thumbs.db file of Explorer. Just enable EnableLoadExplorerThumbnails.

http://www.imageen.com/help/TImageEnMView.EnableLoadExplorerThumbnails.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

giancarlo

Italy
65 Posts

Posted - Sep 09 2016 :  04:49:15  Show Profile  Reply
Thank you Nigel.
I've enabled the EnableLoadExplorerThumbnails but now when i select a picture, the infotext (dimensions) reports random numbers
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 09 2016 :  07:22:56  Show Profile  Reply
- Has no effect if StoreType is ietNormal
- Image meta-data will not be valid if EnableLoadExplorerThumbnails is used unless ieixWantParams is enabled

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: