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);
    }