public function getSupportedFormats()
    {
        $formats = array();

        foreach (gd_info() as $name => $status) {
            if (strpos($name, 'Support') !== false && $status) {
                $formats[] = strtolower(strtok($name, ' '));
            }
        }

        return array_unique($formats);
    }
public function getSupportedFormats()
    {
        $formats = array();

        foreach (gd_info() as $name => $status) {
            if (strpos($name, 'Support') !== false && $status) {
                $formats[] = strtolower(strtok($name, ' '));
            }
        }

        return array_unique($formats);
    }
public function getSupportedFormats ( ) { $ formats = array ( ) ; foreach ( gd_info ( ) as $ name => $ status ) { if ( strpos ( $ name , 'Support' ) !== false && $ status ) { $ formats [ ] = strtolower ( strtok ( $ name , ' ' ) ) ; } } return array_unique ( $ formats ) ; }
Returns an array of supported image formats
@return array
Returns an array of supported image formats