diff --git a/core/components/awss3mediasource/model/awss3mediasource/awss3mediasource.class.php b/core/components/awss3mediasource/model/awss3mediasource/awss3mediasource.class.php index 363b501..934dbb6 100644 --- a/core/components/awss3mediasource/model/awss3mediasource/awss3mediasource.class.php +++ b/core/components/awss3mediasource/model/awss3mediasource/awss3mediasource.class.php @@ -474,11 +474,13 @@ public function getObjectsInContainer($path) $thumbWidth = $this->ctx->getOption('filemanager_thumb_width', 100); $thumbHeight = $this->ctx->getOption('filemanager_thumb_height', 80); + /* Drop this for performance + breaks image size output, but MUCH more stable $size = @getimagesize($url); if (is_array($size)) { $imageWidth = $size[0] > 800 ? 800 : $size[0]; $imageHeight = $size[1] > 600 ? 600 : $size[1]; - } + }*/ if ($thumbWidth > $imageWidth) $thumbWidth = $imageWidth; if ($thumbHeight > $imageHeight) $thumbHeight = $imageHeight;