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
 ImageCacheUseDisk bug

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
giancarlo Posted - Sep 08 2016 : 07:58:24
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
3   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Sep 09 2016 : 07:22:56
- 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
giancarlo Posted - Sep 09 2016 : 04:49:15
Thank you Nigel.
I've enabled the EnableLoadExplorerThumbnails but now when i select a picture, the infotext (dimensions) reports random numbers
xequte Posted - Sep 08 2016 : 15:52:36
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