##### 40.2.1.1 Specifying graphics location for HTML

Graphics files for HTML usually should be in the same directory as the HTML files, or in a related directory. Their location relative to the HTML files might not be the same as their location relative to DITA files. Therefore, you must specify where they will be when your HTML output is deployed on a Web server, in a Help system, or on a production system different from your conversion system.

Note: Some HTML output types restrict placement of graphics; see §32.1 Locating graphics files for HTML.

Graphics in directory with HTML files

To remove any path information from graphics file names, so that a browser or Help viewer will look for graphics in the same directory as the HTML files that reference those graphics:

    [Graphics]
    ; StripGraphPath = No (default)
    ;  or Yes (remove path from graphics references)
    StripGraphPath = Yes

Graphics in a different directory

To specify where a browser or Help viewer should look for graphics:

    [Graphics]
    ; GraphPath = path to use (replacing any previous) for all graphics
    GraphPath = relative/path/to/graphics/files

The location specified by GraphPath is relative to the wrap directory.

Move graphics to the referenced directory

To move graphics to the specified directory, do one of the following:

- Have DITA2Go copy the graphics after conversion; see §44.7.1 Copying referenced graphics to a distribution directory.
- Copy the graphics yourself, outside of the conversion process.

See also:

§44.7.4 Synchronizing graphics settings for HTML output

§32.1 Locating graphics files for HTML

§18.3.9 Locating graphics files for HTML Help

§19.3.8 Getting OmniHelp supporting files in the right place

§20.3.6.3 Locating graphics files for JavaHelp and Oracle Help

Previous Topic: 40.2.1 Changing graphics files for HTML output

Next Topic: 40.2.1.2 Substituting graphics files for HTML

Parent Topic: 40.2.1 Changing graphics files for HTML output

Sibling Topics:

40.2.1.2 Substituting graphics files for HTML

40.2.1.3 Overriding path specifications for referenced graphics

Table of Contents • Index