mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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.
This commit is contained in:
parent
ee5b4fd8d3
commit
190ed628bc
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user