class ThumbnailFormat extends AbstractParameter

The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts. The default for this union is jpeg.

Constants

JPEG

Dot jpg

PNG

dot png

Methods

array
jsonSerialize()

Specify data which should be serialized to JSON

string
__toString()

A shorthand for JSON-encoding parameters

static  ThumbnailFormat
jpeg()

Set the image format to JPEG

static  ThumbnailFormat
png()

Set the image format to PNG

static  array
availableFormats()

Return the available formats

Details

in AbstractParameter at line line 64
array jsonSerialize()

Specify data which should be serialized to JSON

Return Value

array data which can be serialized by json_encode, which is a value of any type other than a resource.

See also

http://php.net/manual/en/jsonserializable.jsonserialize.php

in AbstractParameter at line line 75
string __toString()

A shorthand for JSON-encoding parameters

Return Value

string

at line line 51
static ThumbnailFormat jpeg()

Set the image format to JPEG

Return Value

ThumbnailFormat

at line line 61
static ThumbnailFormat png()

Set the image format to PNG

Return Value

ThumbnailFormat

at line line 71
static array availableFormats()

Return the available formats

Return Value

array