Fix thumbnail orientation

This commit is contained in:
2019-09-01 21:00:06 +02:00
parent 8f2819d4cb
commit fafc377dd9

View File

@@ -179,7 +179,7 @@ class Media extends PhpObject {
if(!file_exists($sThumbPath)) {
switch($sType) {
case 'image':
$asThumbInfo = ToolBox::createThumbnail($sMediaPath, self::THUMB_MAX_WIDTH, 0, $sThumbPath, false, array('jpg', 'jpeg', 'gif', 'png'), false, true);
$asThumbInfo = ToolBox::createThumbnail($sMediaPath, self::THUMB_MAX_WIDTH, 0, $sThumbPath);
break;
case 'video':
//Get a screenshot of the video 1 second in