Skip to content

Commit

Permalink
Merge pull request concretecms#7697 from KorvinSzanto/feature/custom-…
Browse files Browse the repository at this point in the history
…thumbnail-upscaling

Make sure custom thumbnails have upscaling enabled
  • Loading branch information
aembler committed Apr 2, 2019
2 parents 69355d6 + a44721a commit 62ef50c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/File/Image/Thumbnail/Type/CustomThumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CustomThumbnail extends ThumbnailVersion

protected $path;
protected $cropped;

/**
* CustomThumbnail constructor.
* @param int $width
Expand All @@ -27,7 +27,7 @@ public function __construct($width, $height, $path, $cropped)
$cropped = (int) $cropped;
$this->path = $path;
$this->cropped = (bool) $cropped;
parent::__construct(REL_DIR_FILES_CACHE, "ccm_{$width}x{$height}_{$cropped}", 'Custom', $width, $height, false, $sizingMode);
parent::__construct(REL_DIR_FILES_CACHE, "ccm_{$width}x{$height}_{$cropped}", 'Custom', $width, $height, false, $sizingMode, false, [], true);
}

public function getFilePath(FileVersion $fv)
Expand Down

0 comments on commit 62ef50c

Please sign in to comment.