RevertImageResources.js

The RevertImageResources script is desktop-specific, and is not used in EPM Workspace.

In releases earlier than Interactive Reporting Studio Release 9.3, if an Interactive Reporting document contained identical images in multiple places, the image content was duplicated and the Interactive Reporting documents were larger than necessary, slower to load, and less efficient to maintain. Interactive Reporting Studio Release 9.3 and later implements a Resource Manager that centralizes image content storage. For Interactive Reporting documents created in earlier releases, duplicate images can be optionally merged for efficiency.

A side effect of this merging is that if a pre-9.3 release document is opened, optimized, and saved in the 9.3 or later release, the document loses its images when opened in an earlier release of Interactive Reporting Studio, since the relocation and rationalization of the images is not understood by earlier releases.

To retain compatibility with earlier releases in practical terms, the RevertImageResources script provides a facility to undo the relocation and image merging and return the Interactive Reporting document to the pre-9.3 format.

Caution!

The script is useful only with documents saved using Interactive Reporting Studio Release 9.3 and later, after the new image consolidation and translation features have been used. See Consolidate Images in Resource Manager.