diff --git a/app/Services/MarhunPhotoService.php b/app/Services/MarhunPhotoService.php index e3add647..43b42191 100644 --- a/app/Services/MarhunPhotoService.php +++ b/app/Services/MarhunPhotoService.php @@ -154,7 +154,7 @@ class MarhunPhotoService $webpCompiler = $this->getWebpCompilerByOS(); - exec($webpCompiler . ' -q 60 ' . $originalFilePath . ' -o ' . $convertedFilePath); + exec($webpCompiler . ' -resize 1280 720 '.' -mt ' .$originalFilePath . ' -o ' . $convertedFilePath); return $convertedFilePath; } diff --git a/public/js/marhun-photo-capture.js b/public/js/marhun-photo-capture.js index 795de07c..cdd8d5e5 100644 --- a/public/js/marhun-photo-capture.js +++ b/public/js/marhun-photo-capture.js @@ -3,7 +3,13 @@ function marhunPhotoCapturerFactory(modal_selector) { return { - constraints: { "video": { width: { exact: 1080 } } }, + constraints: { + audio: false, + video: { + height: { ideal: 1080 } + }, + facingMode: { exact: "environment" }, + }, imageCapturer: null,