Microsoft KB Archive/944370

= How to revert to the original, unmodified version of an image in Windows Photo Gallery or in Windows Live Photo Gallery =

Article ID: 944370

Article Last Modified on 11/2/2007

-

APPLIES TO


 * Windows Vista Enterprise 64-bit Edition
 * Windows Vista Home Premium 64-bit Edition
 * Windows Vista Ultimate 64-bit Edition
 * Windows Live Photo Gallery
 * Windows Vista Business
 * Windows Vista Business N 64-bit Edition
 * Windows Vista Enterprise
 * Windows Vista Home Basic
 * Windows Vista Home Basic N 64-bit Edition
 * Windows Vista Home Premium
 * Windows Vista Starter
 * Windows Vista Ultimate

-



INTRODUCTION
This article describes how to revert to the original, unmodified version of an image in Windows Photo Gallery or in Windows Live Photo Gallery.



MORE INFORMATION
Windows Photo Gallery and Windows Live Photo Gallery use the System.Image.ImageID file property to revert to the original unmodified version of an image.

For more information about the System.Image.ImageID file property, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/bb787464.aspx

When you edit an image for the first time in Windows Photo Gallery or in Windows Live Photo Gallery, a copy of the original unmodified version of the image is saved in a different location. This lets you revert to the original unmodified version of the image if you want.

In Windows Vista, the original unmodified version of the image is saved to the FOLDERID_OriginalImages folder. The FOLDERID_OriginalImages folder is based on the &quot;Known Folder&quot; system. The following is the default location of the FOLDERID_OriginalImages folder:

%LOCALAPPDATA%\Microsoft\Windows Photo Gallery\Original Images

The following is the default location of the folder where the original unmodified version of the image is saved in Windows XP:

%USERPROFILE%\Local Settings\Application Data\Microsoft\Windows Photo Gallery\Original Images

For more information about the Known Folder system, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/bb776911.aspx

When the original unmodified version of the image is saved, the image file is renamed by using a combination of a unique ID and the original file name. The unique ID is determined by the System.Image.ImageID file property. If there is no System.Image.ImageID file property value, a GUID is created. The following is the new file name construction:

'{' + unique ID + '}' + '-' + file name

The following is an example of a renamed original file:

{198EB054-44E6-441e-87C8-9B29C5198DE6}-image1.jpg

Note If the file name string exceeds the MAX_PATH file name length setting, the file name is truncated to fit the MAX_PATH file name length setting. Additionally, the file name extension is maintained. For example, {198EB054-44E6-441e-87C8-9B29C5198DE6}-superlongfilenamethatexceedsmaxpath.jpg may be truncated to {198EB054-44E6-441e-87C8-9B29C5198DE6}-superlongfi.jpg.

The unique ID that is used to rename the original unmodified version of the image is also stored in the modified version of the image. If the original unmodified version of the image contains a value for the System.Image.ImageID file property, the modified version of the image will contain the same value for the System.Image.ImageID file property. However, if the System.Image.ImageID file property is not present in the original unmodified version of the image, the modified version of the image is updated so that the System.Image.ImageID file property value contains the unique ID.

When you revert to the original unmodified version of an image, the folder that contains the original unmodified version of the image is searched. The search looks for files that begin with the unique ID that is stored in the modified version of the image file. If the search finds multiple matches, the file that contains the oldest time stamp is used.

Keywords: kbhowto kbinfo kb3rdparty kbemail kbphotos kbexpertisebeginner KB944370

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.