mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 18:20:38 +00:00
UI Fixes part III.
This commit is contained in:
@@ -31,15 +31,15 @@ class ProcessImageThumbnailAction
|
||||
// Make copy of file for the thumbnail generation
|
||||
Storage::disk('local')->copy("files/$userId/{$fileName}", "temp/$userId/{$fileName}");
|
||||
|
||||
// Create thumbnail instantly
|
||||
// Create thumbnails instantly
|
||||
($this->generateImageThumbnail)(
|
||||
fileName: $fileName,
|
||||
userId: $userId,
|
||||
execution: 'immediately'
|
||||
);
|
||||
|
||||
// Create thumbnail later
|
||||
($this->generateImageThumbnail)->onQueue()->execute(
|
||||
// Create thumbnails later
|
||||
($this->generateImageThumbnail)->onQueue('high')->execute(
|
||||
fileName: $fileName,
|
||||
userId: $userId,
|
||||
execution: 'later'
|
||||
|
||||
@@ -9,7 +9,7 @@ class StoreFileExifMetadataAction
|
||||
$exif_data = get_image_meta_data($file);
|
||||
|
||||
if ($exif_data) {
|
||||
// Conver array to collection
|
||||
// Convert array to collection
|
||||
$data = json_decode(json_encode($exif_data));
|
||||
|
||||
$item->exif()->create([
|
||||
|
||||
@@ -95,7 +95,9 @@ class File extends Model
|
||||
public function getThumbnailAttribute(): array | null
|
||||
{
|
||||
$links = [];
|
||||
$thumbnail_sizes = collect(config('vuefilemanager.image_sizes'))->collapse()->all();
|
||||
$thumbnail_sizes = collect(config('vuefilemanager.image_sizes'))
|
||||
->collapse()
|
||||
->all();
|
||||
|
||||
// Generate thumbnail link for external storage service
|
||||
if ($this->type === 'image' && ! is_storage_driver('local')) {
|
||||
|
||||
Reference in New Issue
Block a user