From 190ed628bc14f8da67b21e77ded01ab060a09574 Mon Sep 17 00:00:00 2001 From: Christopher Joe Date: Tue, 13 Sep 2016 12:03:36 +1200 Subject: [PATCH] API PreviewThumbnail now uses ScaleMaxWidth This will mean that if a thumbnail image is smaller than the preview_width defined, then it will no longer get blown up to the defined size. --- Assets/ImageManipulation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/ImageManipulation.php b/Assets/ImageManipulation.php index 050030079..4e4271d0e 100644 --- a/Assets/ImageManipulation.php +++ b/Assets/ImageManipulation.php @@ -486,7 +486,7 @@ trait ImageManipulation { */ public function PreviewThumbnail() { $width = (int)Config::inst()->get(get_class($this), 'asset_preview_width'); - return $this->ScaleWidth($width) ?: $this->IconTag(); + return $this->ScaleMaxWidth($width) ?: $this->IconTag(); } /**