Merge pull request #565 from openclassify/fatihalp3

Thumbnail error fix
This commit is contained in:
Fatih Alp 2020-05-17 03:47:00 +03:00 committed by GitHub
commit dd194dcb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
$thumbnail = $this->fileRepository->findByNameAndFolder($fileName, $folder); $thumbnail = $this->fileRepository->findByNameAndFolder($fileName, $folder);
if (!$thumbnail) { if (!$thumbnail) {
// Create thumbnail image // Create thumbnail image
$image = Image::make($adv->files[0]->url()); $image = Image::make(file_get_contents($adv->files[0]->url()));
$image->resize( $image->resize(
setting_value('visiosoft.module.advs::thumbnail_width'), setting_value('visiosoft.module.advs::thumbnail_width'),
setting_value('visiosoft.module.advs::thumbnail_height') setting_value('visiosoft.module.advs::thumbnail_height')