Resize marhun photo to 1280x720 px
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+7
-1
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user