From 43bc8a7206a5384f7971bbd1a8d6208ed1f71f30 Mon Sep 17 00:00:00 2001 From: Albin N Date: Fri, 5 Jul 2024 12:49:57 +0200 Subject: [PATCH] chill with the seconds --- src/Jobs/GenerateResponsiveImagesJob.php | 2 +- src/Models/Video.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jobs/GenerateResponsiveImagesJob.php b/src/Jobs/GenerateResponsiveImagesJob.php index 5dba997..855d96f 100644 --- a/src/Jobs/GenerateResponsiveImagesJob.php +++ b/src/Jobs/GenerateResponsiveImagesJob.php @@ -14,8 +14,8 @@ class GenerateResponsiveImagesJob implements ShouldQueue { use InteractsWithQueue; - use SerializesModels; use Queueable; + use SerializesModels; protected Media $media; diff --git a/src/Models/Video.php b/src/Models/Video.php index 9493408..6b70958 100644 --- a/src/Models/Video.php +++ b/src/Models/Video.php @@ -36,7 +36,7 @@ public function registerMediaConversions(?Media $media = null): void { $this->addMediaConversion('thumb') ->nonQueued() - ->extractVideoFrameAtSecond(20) + ->extractVideoFrameAtSecond(2) ->performOnCollections('videos') ->fit(Fit::Crop, 480, 320);