Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The Image.Save method in GDI+ does not save JPEG images correctly on a computer that is running Windows 7 or Windows Server 2008 R2


View products that this article applies to.

Symptoms

You have a computer that is running Windows 7 or Windows Server 2008 R2. When you use the Image.Save method in GDI+ to save JPEG images on the computer, you encounter one of the following issues:
  • The image becomes corrupted when you save it.
  • An "ArgumentException" exception message is shown if you set the image rotation to 0 degrees when you save the image.
  • You cannot save an image that has no comments in the metadata file.

    Note The Exchangeable Image File Format (EXIF) specification allows JPEG images to have no comments in the metadata file.
  • You cannot save an image that has thumbnail data but that does not have a thumbnail compression metadata tag.

↑ Back to the top


Cause

These issues occur because of some errors in the implementation of the Windows Imaging Component (WIC) JPEG codec.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

There are no prerequisites for applying this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows 7 and Windows Server 2008 R2 file information notes
Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows 7/Windows Server 2008 R2" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
Windowscodecs.dll6.1.7600.166411,011,20022-Jul-201004:39x86
Windowscodecs.dll6.1.7600.207621,011,20023-Jul-201004:42x86
Gdiplus.dll6.1.7600.166411,624,57622-Jul-201004:23x86
Gdiplus.dll6.1.7600.207621,624,57623-Jul-201004:24x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Windowscodecs.dll6.1.7600.166411,190,40022-Jul-201005:51x64
Windowscodecs.dll6.1.7600.207621,190,40023-Jul-201005:03x64
Gdiplus.dll6.1.7600.166412,165,24822-Jul-201005:32x64
Gdiplus.dll6.1.7600.207622,164,73623-Jul-201004:54x64
Windowscodecs.dll6.1.7600.166411,011,20022-Jul-201004:39x86
Windowscodecs.dll6.1.7600.207621,011,20023-Jul-201004:42x86
Gdiplus.dll6.1.7600.166411,624,57622-Jul-201004:23x86
Gdiplus.dll6.1.7600.207621,624,57623-Jul-201004:24x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about the Image.Save method, visit the following Microsoft Developer Network (MSDN) website: For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7
File nameUpdate.mum
File versionNot applicable
File size1,881
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameX86_60410cafeb660f9313effcd6220dc910_6595b64144ccf1df_1.1.7600.16641_none_7ba2e3bcc839b971.manifest
File versionNot applicable
File size627
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameX86_667f5e28017fa75328653c1dee1095de_31bf3856ad364e35_6.1.7600.20762_none_cc8e98e92ad5db3b.manifest
File versionNot applicable
File size700
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameX86_bee19a942d9c22efb1f72d89038f942b_31bf3856ad364e35_6.1.7600.16641_none_029bc46e28876747.manifest
File versionNot applicable
File size700
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameX86_d84edcab3a98cff7852e6aab0f499ec7_6595b64144ccf1df_1.1.7600.20762_none_ff7390640801aa66.manifest
File versionNot applicable
File size627
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameX86_microsoft-windows-windowscodec_31bf3856ad364e35_6.1.7600.16641_none_967f51d80254d5c1.manifest
File versionNot applicable
File size91,448
Date (UTC)22-Jul-2010
Time (UTC)05:13
PlatformNot applicable
File nameX86_microsoft-windows-windowscodec_31bf3856ad364e35_6.1.7600.20762_none_96f44f151b81c6c4.manifest
File versionNot applicable
File size91,448
Date (UTC)23-Jul-2010
Time (UTC)05:16
PlatformNot applicable
File nameX86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16641_none_72f8d64b86155add.manifest
File versionNot applicable
File size2,033
Date (UTC)22-Jul-2010
Time (UTC)05:14
PlatformNot applicable
File nameX86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.20762_none_5c2d19579fbb0732.manifest
File versionNot applicable
File size2,033
Date (UTC)23-Jul-2010
Time (UTC)05:17
PlatformNot applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameAmd64_0aa0dd970951b905aa66f4b084e931ab_6595b64144ccf1df_1.1.7600.16641_none_eec61b37483a9536.manifest
File versionNot applicable
File size631
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_55d4dab36536368b7aa451e085f1381f_6595b64144ccf1df_1.1.7600.20762_none_9f4e4694b4a9b6ce.manifest
File versionNot applicable
File size922
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_60410cafeb660f9313effcd6220dc910_6595b64144ccf1df_1.1.7600.16641_none_d7c17f4080972aa7.manifest
File versionNot applicable
File size629
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_667f5e28017fa75328653c1dee1095de_31bf3856ad364e35_6.1.7600.20762_none_28ad346ce3334c71.manifest
File versionNot applicable
File size702
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_7a642dc489a96077c596511b090bc05e_6595b64144ccf1df_1.1.7600.20762_none_e46bf9f767eae5ed.manifest
File versionNot applicable
File size631
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_856b05496a63ddb11ec1b736e645dbd5_31bf3856ad364e35_6.1.7600.20762_none_cd4259597e8077a5.manifest
File versionNot applicable
File size1,048
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_967026aa63f8ae083e7a24cfb6b0ce4b_31bf3856ad364e35_6.1.7600.16641_none_ffd739c664655849.manifest
File versionNot applicable
File size704
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_96e1ab2a6c7e4a4632a70a56f9ab6a8f_31bf3856ad364e35_6.1.7600.20762_none_7d66bf960b5efc57.manifest
File versionNot applicable
File size704
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_aa42f1bf4ec970f87565051f508e2e16_6595b64144ccf1df_1.1.7600.16641_none_ff142fea6a7f2178.manifest
File versionNot applicable
File size922
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_bee19a942d9c22efb1f72d89038f942b_31bf3856ad364e35_6.1.7600.16641_none_5eba5ff1e0e4d87d.manifest
File versionNot applicable
File size702
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_c8e836baa12bacb366a9d61c85ce21f9_31bf3856ad364e35_6.1.7600.16641_none_f73731ce2b4e2923.manifest
File versionNot applicable
File size1,048
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_d84edcab3a98cff7852e6aab0f499ec7_6595b64144ccf1df_1.1.7600.20762_none_5b922be7c05f1b9c.manifest
File versionNot applicable
File size629
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameAmd64_microsoft-windows-windowscodec_31bf3856ad364e35_6.1.7600.16641_none_f29ded5bbab246f7.manifest
File versionNot applicable
File size91,450
Date (UTC)22-Jul-2010
Time (UTC)06:24
PlatformNot applicable
File nameAmd64_microsoft-windows-windowscodec_31bf3856ad364e35_6.1.7600.20762_none_f312ea98d3df37fa.manifest
File versionNot applicable
File size91,450
Date (UTC)23-Jul-2010
Time (UTC)06:10
PlatformNot applicable
File nameAmd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16641_none_2b4b9f74719931d7.manifest
File versionNot applicable
File size2,039
Date (UTC)22-Jul-2010
Time (UTC)06:25
PlatformNot applicable
File nameAmd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.20762_none_147fe2808b3ede2c.manifest
File versionNot applicable
File size2,039
Date (UTC)23-Jul-2010
Time (UTC)06:11
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size2,537
Date (UTC)23-Jul-2010
Time (UTC)10:55
PlatformNot applicable
File nameX86_microsoft-windows-windowscodec_31bf3856ad364e35_6.1.7600.16641_none_967f51d80254d5c1.manifest
File versionNot applicable
File size91,448
Date (UTC)22-Jul-2010
Time (UTC)05:13
PlatformNot applicable
File nameX86_microsoft-windows-windowscodec_31bf3856ad364e35_6.1.7600.20762_none_96f44f151b81c6c4.manifest
File versionNot applicable
File size91,448
Date (UTC)23-Jul-2010
Time (UTC)05:16
PlatformNot applicable
File nameX86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16641_none_72f8d64b86155add.manifest
File versionNot applicable
File size2,033
Date (UTC)22-Jul-2010
Time (UTC)05:14
PlatformNot applicable
File nameX86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.20762_none_5c2d19579fbb0732.manifest
File versionNot applicable
File size2,033
Date (UTC)23-Jul-2010
Time (UTC)05:17
PlatformNot applicable

↑ Back to the top


Keywords: consumerwin7track, kbautohotfix, kbqfe, kbhotfixserver, kbfix, kbexpertiseinter, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2028610
Revision : 4
Created on : 9/20/2018
Published on : 9/20/2018
Exists online : False
Views : 191