mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
src build elFinder-2.1-1f43c63
This commit is contained in:
@@ -4232,7 +4232,11 @@ abstract class elFinderVolumeDriver {
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
$result = $this->imgSquareFit($result, $tmbSize, $tmbSize, 'center', 'middle', $this->options['tmbBgColor'], 'png' );
|
||||
if ($s = @getimagesize($tmb)) {
|
||||
if ($s[0] !== $tmbSize || $s[1] !== $tmbSize) {
|
||||
$result = $this->imgSquareFit($result, $tmbSize, $tmbSize, 'center', 'middle', $this->options['tmbBgColor'], 'png' );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user