ThumbnailSize
class ThumbnailSize extends AbstractParameter
The size for the thumbnail image. The default for this union is 64x64.
Methods
ThumbnailSize constructor.
Make the size 32 pixels wide, 32 pixels height
Make the size 64 pixels wide, 64 pixels high
Make the size 128 pixels wide, 128 pixels high
Make the size 640 pixels wide, 480 pixels high
Make the size 1024 pixels wide, 768 pixels high
Return a list ov available thumbnail sizes
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 27
__construct(
int $width,
int $height)
ThumbnailSize constructor.
at line line 37
static
ThumbnailSize
w32h32()
Make the size 32 pixels wide, 32 pixels height
at line line 47
static
ThumbnailSize
w64h64()
Make the size 64 pixels wide, 64 pixels high
at line line 57
static
ThumbnailSize
w128h128()
Make the size 128 pixels wide, 128 pixels high
at line line 67
static
ThumbnailSize
w640h480()
Make the size 640 pixels wide, 480 pixels high
at line line 77
static
ThumbnailSize
w1024h768()
Make the size 1024 pixels wide, 768 pixels high
at line line 87
static
array
availableSizes()
Return a list ov available thumbnail sizes