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.
There are three different methods of best image fallback. When you enable or disable fallback, select one of these methods:
Strict: Instructs Corda 7 to only return an image in FLASH or SVG* if the Web browser has enabled the appropriate plug-in.
Loose: Instructs Corda 7 to return an image in FLASH if the Web browser can support the plug-in. This means the Web browser downloads the appropriate plug-in if it is not already installed. This option works just like Strict fallback with SVG images.
None: Disables best image fallback.
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());