Inserting Graphics in RTF Increases File Size

From HotDocs Wiki

Jump to: navigation, search

Contents

Problem

when inserting an image file (.EMF, .PNG, .GIF, or .JPG) in an RTF template, the template's file increases considerably, which negatively impacts assembly speed and publishing (among other things).

Solution

According to an article in the Microsoft Knowledge Base, "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."

To resolve the problem, you can specify a registry setting that keeps Word from saving two copies of the image.

To keep Word from saving two copies of the graphic in your template

  1. Close Word (if it is running.)
  2. Click Start > Run. The Run dialog box appears.
  3. In the Open box, type regedit and click OK. The Registry Editor opens.
  4. Navigate to HKEY_CURRENT_USER > Software > Microsoft > Office > Version > Word > Options. (Replace Version with the version of Word you are using.)
  5. In the right pane of the window, right-click and choose New > String Value. A new string is created called New Value #1.
  1. Rename the value to ExportPictureWithMetafile. (To do this, you can choose Rename from the shortcut menu.
  2. Once the name is changed, right-click on the string and choose Modify. The modify. The Edit String dialog box appears.
  3. In the Value Data box, enter 0.
  4. Click OK

See also