diff --git a/Plugin.php b/Plugin.php index 104464c..9e4e19e 100644 --- a/Plugin.php +++ b/Plugin.php @@ -1,5 +1,6 @@ map(function($fileVersion) use ($l) { - $sizes = getimagesize($l->getPathUrl($fileVersion->path)); + $sizes = getimagesize(Storage::path('media/'.$fileVersion->path)); return [$l->getPathUrl($fileVersion->path), $sizes[0], $sizes[1]]; })->sortBy(function($size) {