Force Windows To Generate Thumbnails

19.09.2019
by Martin Brinkmann on March 12, 2014 in Tutorials - Last Update: March 04, 2019 - 13 comments

The Windows operating system creates thumbnail cache files for images and other file types to speed up the loading of folders on the system. Under Windows XP, thumbs.db files were being used and they were put into the folders the images were stored in.

The folder options dialog box should now pop-up. Click the View tab. Step 3: Under the View tab, head over to the Advanced settings section, having a listing of options selectable via check-boxes. Select the check-box against the option that says Always show icons, never thumbnails. Hit Apply, followed by OK. In Windows 7, when the FileStream is closed, Windows Explorer refreshes the file and shows the correct thumbnail, so you can see the thumbnail of each file as they are unstubbed. In Windows XP, however, Explorer does not refresh the files until the program exits, forcing the user to wait until all files have been unstubbed before being able to browse them.

Starting with Windows Vista, Microsoft moved the cache to a central location (%userprofile%AppDataLocalMicrosoftWindowsExplorer) where thumbcache_xxx.db files are stored in. Here you also find an index file that contains information where each cached version of an image is found in.

The only exception to the rule is when you browse network shares using Windows Vista or newer versions of Windows. Instead of using the local thumbnail cache, thumbs.db files are created in the folders that you are browsing. This behavior can be changed in the Group Policy.

You can think of them as caches that are designed to speed up the display of folders when you use Windows Explorer.

Without the thumbnail cache, Windows would have to process the images in the folder on load every time the folder is opened, which can slow down the display depending on the overall performance of the system and the number of image files in the folder.

Windows does not only store image formats in the database files though. While one of the main purposes is to process jpeg, png, bmp, tiff and gif image files, the cache is also used for document formats such as docx, pptx, pdf and html, and video formats such as avi.

The effect that a thumbs.db cache file and thumbcache file has on the loading time of a folder can be witnessed best if you open a large folder full of image files. You will notice that the loading is faster when the thumbnail cache is enabled. This becomes especially apparent on slow storage devices such as image DVDs or slow hard drives.

Why you may want to turn off the caching

There are a couple of reasons why you may want to turn off the caching. First, there have been issues in the past where thumbs.db files have prevented the renaming or deletion of files or folders on the system.

Depending on how the computer is used, it may also have privacy implications. A cached thumbnail of an image that you have deleted may still be stored in the cache. If you are the sole user of the PC, it may not be an issue. If there are other users, or even third-parties who may gain access to the computer, you may want to delete those caches regularly to avoid this from happening.

It is furthermore possible to link thumbnails with their original files using various methods.

Turning off the caching may however affect the folder loading speed. As mentioned earlier, this can be especially noticeable when you open folders with lots of file types that are usually cached to speed up the loading time.

How to turn of thumbnail caching

From Windows XP onward, Microsoft implemented an option to disable the creation of thumbs.db files on the operating system.

If you are using Windows XP

  1. Click on My Computer.
  2. Select Tools > Folder Options.
  3. Switch to the View tab.
  4. Check 'Do not cache thumbnails'.

If you are using Windows Vista or newer

  1. Click on Start > Control Panel > Folder Options.
    1. If you are using Windows 8, go to the desktop part, press Windows-C to open the Charms menu, and select Settings > Control Panel.
    2. If you are using Windows 10, open Explorer and select File > Change folder and search options.
  2. Select the View tab.
  3. Find the Files and Folders section there, and check 'Always show icons, never thumbnails' to disable the generation of the database files.

Alternative Group Policy Editor

If your operating system supports the Group Policy Editor, you can use it to disable thumbnail caching. To load the editor, do the following:

  1. Tap on Windows-R to open the run box.
  2. Type gpedit.msc and hit enter.
  3. Navigate to the following folder: User Configuration > Administrative Templates > Windows Components > Windows Explorer.
    1. If you are using Windows 8 or newer: User Configuration > Administrative Templates > Windows Components > File Explorer

Here you find the following preferences:

  • Turn off the display of thumbnails and only display icons (Vista or higher) - disables the display of thumbnails in Windows Explorer when enabled.
  • Turn off the display of thumbnails and only display icons on network folders (Vista or higher) - disables the display of thumbnails on network folders in Explorer when enabled.
  • Turn off the caching of thumbnails in hidden thumbs.db files (Vista or higher) - when enabled, prevents Windows Explorer from reading, creating or writing to thumbs.db files.
  • Turn off the caching of thumbnail pictures (XP or higher) -- prevents that Windows caches thumbnail pictures.

Using the Windows Registry

If you do not have access to the Group Policy Editor on your system, you can disable the generation of thumbnail caches on Windows using the Registry instead.

  • Tap on the Windows-key, type regedit, and hit enter.
  • Navigate to the following key using the folder structure on the left: HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
  • Locate the preference DisableThumbnailCache on the right.
  • Change its value from 0 to 1 to disable the feature.
  • If you want to restore it at a later point in time, change it back to 0.

How to view and delete existing thumbs.db files

Force Windows To Generate Thumbnails

Existing files are not removed automatically when you disable the creation of thumbnail cache files in Windows. For that, you can either use specialized viewer and cleaner applications, or general purpose programs instead.

One of the easier ways is to use Windows Search to find all thumbs.db files. Once you have found them all, use Ctrl-A to select them and hit the delete button to remove them all from your system.

Specialized applications

Thumbnail Database Cleaner has been designed specifically to find and remove thumbs.db files on the system. Please note that the program requires the Microsoft .Net Framework 2.0.

Just run it, select a drive you want to scan, and click the start search button afterwards. It displays all thumbnail caches it finds, and you can select some or all for removal.

You can furthermore sort the display by file size, date or file path. The only thing missing is a viewer module that lets you view individual files.

Thumbs Viewer is another program that you can use for that purpose. Its primary purpose is to view the contents of a thumbs.db file, but it can also be used to remove cached thumbnails from it.

Force Windows To Generate Thumbnails

The program displays all cached files automatically when you load a database file. You can sort the entries by name, size or location, and view each thumbnail with a click on it.

Entries can be deleted or saved with a right-click. If you want to remove all, use Ctrl-A to mark them all, right-click and select remove selected from the context menu.

Hearts of iron 4 game of thrones mod Mar 06, 2017  500 LIKES? FOR GAME OF THRONES MOD! WESTEROS 1936 HEARTS OF IRON 4? Support me on Patreon - Cheap Games G2A - https://ww. Jun 17, 2017  Steam Workshop: Hearts of Iron IV. A total conversion that modernizes the world of Game of Thrones and bring it into the world of HoI4. Fight in the War of Five Kings, hold back the Wildlings, unite the old Valyrian lands, invade the I.

Thumbs.db Explorer provides you with another option. It works similar to Thumbs Viewer in that you need to point it to a thumbnail file that you want to load in the software.

Note that it can only load thumbs.db files and not thumbcache files. It displays the total number of thumbnails in the file, their name and size.

You can use it to save some or all images to your local system, but not delete the selection.

Thumbs Remover is the final program of this list. It can be used to search the system for thumbs.db files to remove them all or select ones in one go.

It comes as a standalone version and installer which both work identical. Point the program to a drive letter and click on start to run the scan. It may take a while as the program goes through all folders on the drive to find any thumbs.db file.

All files are displayed in the interface afterwards, and you can delete some or all of them from here easily using buttons the program makes available.

General purpose programs

The popular temporary file cleaner CCleaner can remove all thumbnail cache files from the operating system. The option is selected by default, and you find it under Windows > Windows Explorer in the program interface.

The Windows operating system ships with its own cleanup tool. You can run it with a click on Start, typing Disk Cleanup, and the selection of the entry. If you are using Windows 8 or 10, you simply type Disk Cleanup on the Start Screen part of the operating system and select the result.

Select the drive that you want to scan, and a thumbnails entry should be listed here then.

Tip: Configure Windows 10 to prevent the automatic deletion of thumbnails.

All you need to know about thumbnail cache files in Windows
Description
The Windows operating system creates thumbnail cache files for images and other file types to speed up the loading of folders on the system.
Author
Ghacks Technology News
Logo
Advertisement

Our Windows file server has an archive service installed that 'stubs' files that have not been accessed for a defined period of time. When a request for the stubbed file is sent to the server, the archive service replaces the stub with the original document and serves it to the user.

A major complaint about the archive service was that thumbnails for photos were no longer available. I decided to create a program in C# that would allow the user to select a folder and unstub all the files in it. It does this by reading the first byte of each file in the folder:

It works well, but I have one small problem that I would like to resolve.

In Windows 7, when the FileStream is closed, Windows Explorer refreshes the file and shows the correct thumbnail, so you can see the thumbnail of each file as they are unstubbed. In Windows XP, however, Explorer does not refresh the files until the program exits, forcing the user to wait until all files have been unstubbed before being able to browse them.

Is there any way to force Windows XP to recreate the thumbnail for the file immediately after reading it? What signal is being given to refresh the files after the program closes? Or am I going about this the wrong way completely?

ToraiTorai

2 Answers

Sheng Jiang 蒋晟Sheng Jiang 蒋晟
14.3k2 gold badges24 silver badges44 bronze badges

There doesn't appear to be an interface with Windows XP. Vista and above introduce the IThumbnailCache interface.

Could you not delete thumbs.db and force it that way?

The format of thumbs is undocumented but there's a project at http://vinetto.sourceforge.net/ that attempts to understand it that may give some pointers if you want to delve.

vickdvickd

Force Windows 10 To Generate Thumbnails

Not the answer you're looking for? Browse other questions tagged c#file-iowindows-xpthumbnailswindows-explorer or ask your own question.

Comments are closed.