SetFileFormat
Prev | PHPlot Function Reference | Next

## SetFileFormat

SetFileFormat — Select the graphic image format generated by PHPlot

## Synopsis

    $plot->SetFileFormat($format)

## Description

`SetFileFormat` selects a graphic image format from the available image formats. Depending on how PHP and/or GD were built on your system, available formats include JPEG, PNG, GIF, and WBMP.

## Parameters

`$format`

  What graphic image format to use: 'jpg', 'png', 'gif', or 'wbmp'.

## Notes

The default file format is 'png'.

Depending on how GD was built, not all of these formats will be available. You can use `phpinfo()` to see what formats are supported by your PHP/GD installation.

JPEG is generally a bad choice for this type of image, as the lossy compression reduces the quality of lines and text.

Prev | Up | Next
SetFailureImage | Home | SetFont