Document file size increases with EMF, PNG, GIF, or JPEG graphics in Word (224663)



The information in this article applies to:

  • Microsoft Office Word 2003
  • Microsoft Word 2002
  • Microsoft Word 2000
  • Microsoft Word 97 for Windows

This article was previously published under Q224663
This article is a consolidation of the following previously available article 262464: WD97: Document File Size Increases with EMF, PNG, GIF, or JPEG Graphics
Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

When you save a Microsoft Word document that contains an EMF, PNG, GIF, or JPEG graphic as a different file format (for example, Word 6.0/95 (*.doc) or Rich Text Format (*.rtf)), the file size of the document may dramatically increase.

For example, a Microsoft Word 2000 document that contains a JPEG graphic that is saved as a Word 2000 document may have a file size of 45,568 bytes (44.5KB). However, when you save this file as Word 6.0/95 (*.doc) or as Rich Text Format (*.rtf), the file size may grow to 1,289,728 bytes (1.22MB).

CAUSE

This functionality is by design in Microsoft Word. If an EMF, a PNG, a GIF, or a JPEG graphic is inserted into a Word document, when the document is saved, two copies of the graphic are saved in the document. Graphics are saved in the applicable EMF, PNG, GIF, or JPEG format and are also converted to WMF (Windows Metafile) format.

RESOLUTION

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To prevent Word from saving two copies of the graphic in the document, and to reduce the file size of the document, add the ExportPictureWithMetafile=0 string value to the Microsoft Windows registry. To do this, follow these steps:
  1. Quit Word.
  2. Click Start, click Run, type regedit in the Open box, and then click OK.
  3. Locate and then click to select one of the following registry keys, depending on your version of Word:
    • For Microsoft Office Word 2003, locate and then click HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options.
    • For Microsoft Word 2002, locate and then click HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Options.
    • For Word 2000, locate and then click HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options.
    • For Word 97, locate and then click HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Word\Options
  4. After you select the key that is specified in step 3, point to New on the Edit menu, and then click String.
  5. Type ExportPictureWithMetafile, and then press ENTER.
  6. Right-click ExportPictureWithMetafile, and then click Modify.
  7. In the Value data box, type 0, and then click OK.
  8. On the File menu, click Exit to quit Registry Editor.
Now, when you save a Word document that contains an EMF, a PNG, a GIF, or a JPEG graphic in a different format (for example, Word 6.0/95 (*.doc) or Rich Text Format (*.rtf)), Word does not retain two copies of the graphic and does not dramatically increase the file size of the document as compared to the Word version of the file.

Modification Type:MajorLast Reviewed:2/11/2005
Keywords:kbnofix kbprb KB224663