Best Image Fallback

Best Image Fallback lets Corda Server™ serve images in the highest quality format that a client's Web browser supports. For example, if Corda Server's default image format is FLASH, but a certain Web browser does not have the FLASH plug-in, Corda Server can automatically serve a JPEG image instead.

Note: Best Image Fallback does not apply to PDF, EPS or TIFF images. However, Corda Server supports Automatic PNG Detection, which returns a PNG instead of JPEG image if a Web browser supports PNG. For more information, see Automatic PNG Detection in the Corda® 7 Install and Administration manual.

Fallback Methods

There are three different methods of best image fallback. When you enable or disable fallback, select one of these methods:

To request best image fallback, use Corda Embedder's fallback attribute. For example:

myImage.fallback = "STRICT";

After setting the image format, insert the following code into the Web page:

Example: Enabling Best-Image Fallback

myImage = new CordaEmbedder();

myImage.imageTemplate = "image_templates\examples\bar.itxml";

myImage.width = 600;

myImage.height = 400;

myImage.outputType = "SVG";

myImage.fallback = "STRICT";

document.writeln(myImage.getEmbeddingHTML());