Skip to content

Commit

Permalink
미디어라이브러리에서 파일을 upload 할 때 썸네일 생성이 안 될 수 있는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woongbin committed Apr 28, 2020
1 parent 4e0991b commit 276b169
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/Xpressengine/MediaLibrary/MediaLibraryHandler.php
Expand Up @@ -519,13 +519,7 @@ public function uploadMediaLibraryFile(Request $request)

if (XeMedia::is($file) == true) {
$media = XeMedia::make($file);

$metaData = $media['meta'];
$thumbnailConfig = config('xe.media.thumbnail.dimensions');
if ($metaData['width'] < $thumbnailConfig['MAX']['width'] ||
$metaData['height'] < $thumbnailConfig['MAX']['height']) {
XeMedia::createThumbnails($media);
}
XeMedia::createThumbnails($media);
}

$folderItem = null;
Expand Down

0 comments on commit 276b169

Please sign in to comment.