ThumbnailFormat
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
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
in AbstractParameter at line line 75
string
__toString()
A shorthand for JSON-encoding parameters
at line line 51
static
ThumbnailFormat
jpeg()
Set the image format to JPEG
at line line 61
static
ThumbnailFormat
png()
Set the image format to PNG
at line line 71
static
array
availableFormats()
Return the available formats