Contents Previous Next

4.5 Choosing the image format for JpGraph

By default JpGraph automatically chooses the image format to use in the order PNG, JPEG and GIF. The exact format depends on what is available on your system. There are two ways you can influence the way the graphic format is chosen.

  1. Change the default graphic format by changing the DEFINE
     DEFINE ("DEFAULT_GFORMAT" ,"auto");

  2. Set the graphic format in your script by calling the method SetImgFormat() For example, to force your script to use JPEG in one specific image use
     $graph-> img-> SetImgFormat( "jpeg")


Contents Previous Next