UI Fixes part III.

This commit is contained in:
Čarodej
2022-03-14 10:10:23 +01:00
parent 3c35ea9a4e
commit fe3fbe7db7
34 changed files with 137 additions and 121 deletions
@@ -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([
+3 -1
View File
@@ -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')) {