mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify
This commit is contained in:
commit
c1df588b10
@ -320,7 +320,11 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
$image = Image::make(file_get_contents($adv->files[0]->make()->url(), false, stream_context_create($arrContextOptions)));
|
$url = preg_replace_callback('#://([^/]+)/([^?]+)#', function ($match) {
|
||||||
|
return '://' . $match[1] . '/' . join('/', array_map('rawurlencode', explode('/', $match[2])));
|
||||||
|
}, $adv->files[0]->make()->url());
|
||||||
|
|
||||||
|
$image = Image::make(file_get_contents($url, false, stream_context_create($arrContextOptions)));
|
||||||
$image->resize(
|
$image->resize(
|
||||||
null,
|
null,
|
||||||
setting_value('visiosoft.module.advs::thumbnail_height'),
|
setting_value('visiosoft.module.advs::thumbnail_height'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user