From f777d2ff737d3db9cc497498f4e93a526905ca8c Mon Sep 17 00:00:00 2001 From: "afiq.hamzah" Date: Sun, 4 Dec 2022 15:00:46 +0800 Subject: [PATCH] Add compiler preset option to photo --- app/Services/MarhunPhotoService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/MarhunPhotoService.php b/app/Services/MarhunPhotoService.php index 43b42191..649bcb76 100644 --- a/app/Services/MarhunPhotoService.php +++ b/app/Services/MarhunPhotoService.php @@ -154,7 +154,7 @@ class MarhunPhotoService $webpCompiler = $this->getWebpCompilerByOS(); - exec($webpCompiler . ' -resize 1280 720 '.' -mt ' .$originalFilePath . ' -o ' . $convertedFilePath); + exec($webpCompiler . ' -preset photo ' . ' -resize 1280 720 ' . ' -mt ' .$originalFilePath . ' -o ' . $convertedFilePath); return $convertedFilePath; }