Resize marhun photo to 1280x720 px

This commit is contained in:
afiq.hamzah
2022-12-04 14:53:11 +08:00
parent 32dd54c707
commit 921669fc4f
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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;
}
+7 -1
View File
@@ -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,