From b8fbfcdac27e37d1685df94a12258c6515c6d792 Mon Sep 17 00:00:00 2001 From: Charles T Date: Sun, 1 Oct 2023 20:49:25 +0800 Subject: [PATCH] Add (ai gen) --- app/Jobs/Tasks/SaveShopeeSellerImagesTask.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Jobs/Tasks/SaveShopeeSellerImagesTask.php b/app/Jobs/Tasks/SaveShopeeSellerImagesTask.php index f55540b..4f2b53d 100644 --- a/app/Jobs/Tasks/SaveShopeeSellerImagesTask.php +++ b/app/Jobs/Tasks/SaveShopeeSellerImagesTask.php @@ -174,6 +174,11 @@ private static function getFilteredImages(string $raw_html, string $proxy, strin continue; } + if ($height > $width) + { + continue; + } + $interventionImage->resize(800, null, function ($constraint) { $constraint->aspectRatio(); });