mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
Merge pull request #565 from openclassify/fatihalp3
Thumbnail error fix
This commit is contained in:
commit
dd194dcb23
@ -312,7 +312,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
$thumbnail = $this->fileRepository->findByNameAndFolder($fileName, $folder);
|
||||
if (!$thumbnail) {
|
||||
// Create thumbnail image
|
||||
$image = Image::make($adv->files[0]->url());
|
||||
$image = Image::make(file_get_contents($adv->files[0]->url()));
|
||||
$image->resize(
|
||||
setting_value('visiosoft.module.advs::thumbnail_width'),
|
||||
setting_value('visiosoft.module.advs::thumbnail_height')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user