Performs various cleanup and adjustments to all images and container fig elements.
This command performs the following actions on each anchored frame in the document:
Check for multiple objects in a frame, if more than one an error is reported. Processing continues using the first referenced image.
Sets the image/@href attribute to a relative path based on the actual referenced image.
If a path mapping is defined in the ImagePathMap section of the fm2dita.ini file, the @href value is modified accordingly.
Sets the image/@height and image/@width values based on the current image scaling.
If this image is wrapped in a fig element (or an element with a @class of “topic/fig”), the following processing is performed:
Set image/@placement to “break”.
If the alignment is center or right, set image/@align to that value.
Check for an element that wraps the image (between the fig and the image) with an @outputclass of “figimage”, if found, unwrap that element.
Check for a child element of the fig with an @outputclass of “figtitle”, if found move it to the proper location (first child of fig) and retag as a title element (“figtitle” value is removed).
This command must be run after the EDD has been applied and after the Assign IDs to Topics command has been run.
The following images show a simple structure before and after running the Fix Images command.