mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
Thumbnail error fix
This commit is contained in:
parent
feedcc665c
commit
38ba74e590
@ -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')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user