FallbackThumbGenerator.php: update
This commit is contained in:
parent
f579a64637
commit
b4c2c7ab56
1 changed files with 7 additions and 7 deletions
|
@ -31,12 +31,12 @@ class FallbackThumbGenerator implements ThumbGenerator {
|
|||
int $max_width,
|
||||
int $max_height
|
||||
): ThumbGenerationResult {
|
||||
$res = new ThumbGenerationResult();
|
||||
$res->thumb_file_path = $this->path;
|
||||
$res->thumb_mime = $this->mime;
|
||||
$res->is_thumb_file_temporary = false;
|
||||
$res->width = \min($this->width, $max_width);
|
||||
$res->height = \min($this->height, $max_height);
|
||||
return $res;
|
||||
return new ThumbGenerationResult(
|
||||
$this->path,
|
||||
$this->mime,
|
||||
false,
|
||||
\min($this->width, $max_width),
|
||||
\min($this->height, $max_height)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue