#### 32.8.1 Excluding image size attributes from HTML

By default, DITA2Go includes image width and height attributes in HTML, XHTML, DITA XML, and DocBook XML output, and excludes these attributes from generic XML output.

To exclude image width and height attributes from HTML output:

[Graphics]
; GraphScale = Yes (default) to put out width and height attributes,
; or No to eliminate them all (mainly for Generic XML)
GraphScale = No

If you do not include any setting at all for GraphScale, you get the default for the output type you specify.

Note: You get faster display in browsers if you keep the image width and height attributes, because a browser can proceed with page layout without waiting for the graphic file to arrive.

See also:

§23.3.2 Eliminating HTML attributes and tags for generic XML

§24.7.3 Omitting size attributes from images for DITA output

§26.7.3 Omitting size attributes from images for DocBook

Previous Topic: 32.8 Scaling images for HTML

Next Topic: 32.8.2 Adjusting image size for selected graphics

Parent Topic: 32.8 Scaling images for HTML

Sibling Topics:

32.8.2 Adjusting image size for selected graphics

32.8.3 Specifying px units for graphics sized in pixels

Table of Contents • Index