mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
- admin registration fixes
- alert popup refactoring
This commit is contained in:
@@ -11,16 +11,19 @@ class GenerateImageThumbnailAction
|
||||
|
||||
public function __invoke($fileName, $userId, $execution): void
|
||||
{
|
||||
$localDisk = Storage::disk('local');
|
||||
|
||||
// Get image width
|
||||
$imageWidth = getimagesize($localDisk->path("temp/$userId/$fileName"))[0];
|
||||
$imageWidth = getimagesize(
|
||||
Storage::disk('local')->path("temp/$userId/$fileName")
|
||||
)[0];
|
||||
|
||||
collect(config("vuefilemanager.image_sizes.$execution"))
|
||||
->each(function ($size) use ($userId, $fileName, $imageWidth) {
|
||||
if ($imageWidth > $size['size']) {
|
||||
|
||||
// Create intervention image
|
||||
$intervention = Image::make(config('filesystems.disks.local.root') . "/temp/$userId/$fileName")
|
||||
$intervention = Image::make(
|
||||
Storage::disk('local')->path("temp/$userId/$fileName")
|
||||
)
|
||||
->orientate();
|
||||
|
||||
// Generate thumbnail
|
||||
|
||||
Reference in New Issue
Block a user