GhostFill Tips & Tricks

Tips, tricks and solutions with the GhostFill document assembly platform
Wednesday, February 21, 2007

Reduce Size of Embedded Pictures in RTF Templates


In Microsoft Word there can often be a major size discrepancy between Word files and Rich Text Formatted versions of the same file. This is most often due to how Word RTF handles embedded picture files (such as logos, watermarks, illustrations, etc.) When saved to RTF, the space allocated for the picture can be as much as 20 times the size of the combined size of the document and picture. According to Microsoft, this discrepancy is actually a feature. When a document is exported to RTF, the process creates two files for each image, one is the original image and the other is a Windows Meta File (WMF). The WMF format is designed to describe resizable vector-type drawings - line drawings - and is very efficient for those. However, it is horribly inefficient for storing photographic images pixel by pixel.

There is a registry tweak that can turn off this feature

Article Content

Take the following steps:

  • Close all instances of Word
  • Use the Windows key to START -> RUN
  • Type REGEDIT and click OK
  • In OfficeXP - Find the following Key: HKEY_CURRENT_USER/Software/Microsoft/Office/10.0/Word/Options
  • In Office2003 - Find the following Key: HKEY_CURRENT_USER/Software/Microsoft/Office/11.0/Word/Options
  • Right-click in the right-hand pane and choose New -> String Value
  • Enter the name “ExportPictureWithMetaFile” as the new key and click OK
  • Then double-click on the ExportPictureWithMetaFile and type 0 (zero) for its value and click enter
  • Close up the registry

  • After this, there will be no more expanding files. To deal with existing RTF files, simply open the file and save it to Word format. Then reopen the file and save it back to RTF format. These changes are machine specific and should be made on all machines where the templates are maintained. 

    Posted by Admin
    Page 1 of 1 pages

    Statistics

    Page Views: 1568
    Page rendered in 0.4461 seconds
    34 queries executed
    Total Entries: 79
    Most Recent Entry: 04/01/2008 04:26 pm
    Total Members: 5
    Total Logged in members: 0
    Total guests: 11
    Most Recent Visitor on: 05/13/2008 04:11 am
    Most visitors ever: 87 on 11/07/2006 02:22 pm