JPEG (or JPG) stands for Joint Photographic Experts Group and was named for the organization that developed the format. It is an image format that is almost universally supported. It allows for millions of colors; however, because it is a lossy format, JPEG images may look fuzzier and less crisp than images in other formats. JPEG images are larger in file size than SVG* or Flash* images. They are typically smaller than PNG image files but also of lesser quality. JPEG images generated by Corda® Server™ print only at a low resolution of 72 DPI.
Corda Server uses Javascript* to provide interactivity such as drilldown and hover text in JPEG images. In many cases, interactivity is just as good as it is in a Flash or SVG image. If you prefer not to use Javascript to provide interactivity, Corda Server can provide limited drilldown and hover capabilities via an image map. For more details, see Drilldown/ Hover/ Roll-Over Data Label Problems with PNG or JPEG Images in the Corda 7 Install and Administration Guide. JPEG images cannot show Hover objects or animations.
By default, JPEG images are compressed at a level of 7.5 on a scale of 0-10, where 0 is the highest compression, and 10 is no compression. Change the Corda Server compression level by modifying the <CS_JPGQuality> server configuration setting.
JPEG images in Corda 7 Enterprise are anti-aliased.
Generate a JPEG Corda image by setting the Corda Embedder outputType attribute to "JPEG." For example, assuming the Corda Embedder object is named myImage, you use the following command to set the image format to JPEG:
myImage.outputType = "JPEG";
Generate a JPEG Corda image using the @_JPEG server command. For example, the following HTTP request generates a JPEG Corda image:
http://<server_address>:2001/?@_FILEexamples/bar.itxml@_JPEG
Embed a JPEG image in a Web page simply by making it the source of an image tag. For example, the following image tag embeds the JPEG image we created with the HTTP request above. It also provides an alternate text description of My Corda Image in case the image loads slowly or for the visually impaired.
<img src="http://<server_address>:2001/?@_FILEexamples/bar.itxml@_JPEG" alt="My Corda Image" />