Supported graphic file formats

In Sage CRM, you can use the Graphic block to work with the following graphic file formats:

  • JPEG. Default format for graphics and charts. 16 million colors (24 bit).
    High level of compression (small file size). Does not support animation and transparency.
  • GIF. 256 colors (8 bit). High level of compression (small file size). Supports animation and transparency.
  • BMP. Various color depths. No compression (large file size).

The characteristics of these formats can affect the image quality of your graphic or chart. If you don't require animation and transparency, use JPEG rather than GIF, as JPEG allows your image to contain a much greater color depth.

Fusion charts are rendered as JPEG in ASP and .NET, and they are rendered as HTML5 in the Classic and Interactive Dashboard.

To save graphics as JPEG or GIF, you can use the SaveAsGifs and SaveAsJPG(text) methods exposed by the CRMGraphicBlock object.

For example:

Copy
var graphic;
graphic = CRM.GetBlock('graphic');
graphic.SaveAsGifs = true;