Mfarooq360 / WinThumbsPreloader

WinThumbsPreloader is a simple open source tool for preloading thumbnails in Windows Explorer.
MIT License
61 stars 1 forks source link

TBCache.GetThumbnail(shellItem, 128, WTS_FLAGS.WTS_EXTRACTINPROC, out bmp, out cFlags, out bmpId); #9

Open freemedom opened 1 week ago

freemedom commented 1 week ago

HRESULT GetThumbnail( [in] IShellItem *pShellItem, [in] UINT cxyRequestedThumbSize, [in] WTS_FLAGS flags, [out, optional] ISharedBitmap *ppvThumb, [out, optional] WTS_CACHEFLAGS pOutFlags, [out, optional] WTS_THUMBNAILID *pThumbnailID );

What impact does the choice of the value cxyRequestedThumbSize have on the actual explorer viewing? I have some curiosity about this. Thanks.

I did a google search and found no related results.

Mfarooq360 commented 1 week ago

Hello, changing the value of cxyRequestedThumbSize changes which thumbnail cache file is used in the Explorer folder for thumbnail cache when preloading thumbnails.

In Version 2 of this program, you can change which sizes are generated from within the GUI, which helps to generate thumbnails for different sized thumbnails. You can even use multiple thumbnail sizes in V2.

The default is 256 which works well for the majority of thumbnails including File Explorer thumbnails and when using the small setting in the Windows photos app. Using size 768 helps to preload thumbnails for the Windows photos app when using medium/large sizes.