|
| $thumbnailRepository |
|
| $adjustedSizeInfo |
|
| $sourceFileResourceType |
|
| $backend |
|
| $sourceFileDir |
|
| $sourceFileName |
|
| $requestedWidth |
|
| $requestedHeight |
|
| $resizedImageFileName |
|
| $resizedImageData |
|
| $resizedImageSize |
|
| $resizedImageMimeType |
|
| $timestamp |
|
ExtensionMimeTypeDetector | $mimeTypeDetector |
|
The Thumbnail class.
A class representing a thumbnail.
◆ __construct()
__construct |
( |
ThumbnailRepository |
$thumbnailRepository, |
|
|
ResourceType |
$sourceFileResourceType, |
|
|
|
$sourceFileDir, |
|
|
|
$sourceFileName, |
|
|
|
$requestedWidth, |
|
|
|
$requestedHeight |
|
) |
| |
- Parameters
-
string | $sourceFileDir | |
string | $sourceFileName | |
int | $requestedWidth | |
int | $requestedHeight | |
◆ adjustDimensions()
Adjusts thumbnail dimensions.
Dimensions passed in $requestedWidth
and $requestedHeight
are adjusted to one of the allowed sizes. The smallest allowed thumbnail size that is bigger than the requested one is used.
◆ create()
◆ getDirectory()
Returns backend-relative thumbnails directory.
- Returns
- string
Reimplemented from ResizedImageAbstract.
The documentation for this class was generated from the following file: