Windows thumbnail cache
(Updated links) |
|||
Line 5: | Line 5: | ||
|pronom={{PRONOM|fmt/682}} | |pronom={{PRONOM|fmt/682}} | ||
}} | }} | ||
− | '''Windows thumbnail cache''' is a file format used by some versions of Microsoft Windows to store thumbnails of images and certain other file types. Thumbnails may be written to a file named <code>Thumbs.db</code> in the folder containing the image file, or to a file in a central location. The file format is based on [[Microsoft Compound File]] format. Apparently the files can be of forensic interest as they sometimes contain references to deleted images. | + | '''Windows thumbnail cache''' (or '''Thumbs.db''' format) is a file format used by some versions of Microsoft Windows to store thumbnails of images and certain other file types. Thumbnails may be written to a file named <code>Thumbs.db</code> in the folder containing the image file, or to a file in a central location. The file format is based on [[Microsoft Compound File]] format. Apparently the files can be of forensic interest as they sometimes contain references to deleted images. |
− | In versions starting with Vista, separate thumbnail files are no longer used, with the thumbnails instead being stored in a centralized database at <code>\Users\%username%\AppData\Local\Microsoft\Windows\Explorer</code>. | + | In versions starting with Vista, separate thumbnail files are ''usually'' no longer used, with the thumbnails instead being stored in a centralized database at <code>\Users\%username%\AppData\Local\Microsoft\Windows\Explorer</code>. However, separate Thumbs.db files may still be created on network drives. |
+ | |||
+ | == Format details == | ||
+ | Thumbs.db format is undocumented, and fairly difficult to decode. The are at least two different major thumbnail versions, which we'll call "original format" and "new format". There are an uncertain number of minor versions. Different thumbnail versions may be combined in the same file. Presumably, this can happen when Windows updates a file created by an older version of Windows. | ||
+ | |||
+ | Files that contain at least one "original format" thumbnail have a special stream named "Catalog", which contains the original filenames, and other information. The thumbnail streams themselves have simple numeric names like "021", which are to be reversed and interpreted as a Catalog ID number (120, in this case). | ||
+ | |||
+ | Thumbnails in "new format" do not use a Catalog file. Instead, the streams have names like "256_79dea834bece3f6b", apparently containing a pixel size and a hash. | ||
+ | |||
+ | In all versions, the thumbnail streams do not contain just the embedded image file. Instead (for no obvious reason) they start with a header. | ||
+ | |||
+ | There are are at least three different image formats that a thumbnail may use: | ||
+ | # Standard [[JFIF]] JPEG format | ||
+ | # A nonstandard RGBA format based on [[JPEG]] | ||
+ | # [[PNG]] | ||
+ | |||
+ | == Identification == | ||
+ | There seems to be no simple way to reliably identify a Thumbs.db file as such, just from its contents. Heuristics must be used. See the "Format details" section above. | ||
== Software == | == Software == | ||
Line 24: | Line 41: | ||
[[Category:Microsoft]] | [[Category:Microsoft]] | ||
[[Category:Microsoft Compound File]] | [[Category:Microsoft Compound File]] | ||
+ | [[Category:File formats with a distinctive filename]] |
Revision as of 15:14, 23 October 2016
Windows thumbnail cache (or Thumbs.db format) is a file format used by some versions of Microsoft Windows to store thumbnails of images and certain other file types. Thumbnails may be written to a file named Thumbs.db
in the folder containing the image file, or to a file in a central location. The file format is based on Microsoft Compound File format. Apparently the files can be of forensic interest as they sometimes contain references to deleted images.
In versions starting with Vista, separate thumbnail files are usually no longer used, with the thumbnails instead being stored in a centralized database at \Users\%username%\AppData\Local\Microsoft\Windows\Explorer
. However, separate Thumbs.db files may still be created on network drives.
Contents |
Format details
Thumbs.db format is undocumented, and fairly difficult to decode. The are at least two different major thumbnail versions, which we'll call "original format" and "new format". There are an uncertain number of minor versions. Different thumbnail versions may be combined in the same file. Presumably, this can happen when Windows updates a file created by an older version of Windows.
Files that contain at least one "original format" thumbnail have a special stream named "Catalog", which contains the original filenames, and other information. The thumbnail streams themselves have simple numeric names like "021", which are to be reversed and interpreted as a Catalog ID number (120, in this case).
Thumbnails in "new format" do not use a Catalog file. Instead, the streams have names like "256_79dea834bece3f6b", apparently containing a pixel size and a hash.
In all versions, the thumbnail streams do not contain just the embedded image file. Instead (for no obvious reason) they start with a header.
There are are at least three different image formats that a thumbnail may use:
Identification
There seems to be no simple way to reliably identify a Thumbs.db file as such, just from its contents. Heuristics must be used. See the "Format details" section above.