Add enhancement to camera

This commit is contained in:
afiq.hamzah
2023-05-23 15:42:11 +08:00
parent df8455a857
commit b5c092b73a
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -153,6 +153,6 @@ class MarhunPhotoService
$webpCompiler = $this->getWebpCompilerByOS();
exec($webpCompiler . ' -preset photo ' . ' -resize 1920 1080 ' . ' -mt ' . $originalFilePath . ' -o ' . $convertedFilePath);
exec($webpCompiler . ' -preset photo ' . ' -resize 1280 720 ' . ' -mt ' . $originalFilePath . ' -o ' . $convertedFilePath);
}
}
+2 -4
View File
@@ -71,8 +71,6 @@ function marhunPhotoCapturerFactory(modal_selector) {
setMarhunPhotoInputToCapturedPhoto(blob)
}, 'image/png');
})
.catch((err) => {
@@ -161,8 +159,8 @@ function marhunPhotoCapturerFactory(modal_selector) {
function composeConstraint(camera) {
let constraints = {
width: { exact: 1920 },
height: { exact: 1080 },
width: { exact: 3200 },
height: { exact: 1800 },
};
if (camera.deviceId !== '') {
@@ -22,7 +22,7 @@
src="" width="960"
class="border border-dark d-none">
<video class="video-tag-overallmarhun video-preview" width="960" height="540" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="1920" height="1080" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="3200" height="1800" autoplay=true />
</div>
<input accept="image/png, 'image/jpeg'" type="file" id="inputGroupFile04" name="gambarMarhun"
class="d-none">
@@ -81,7 +81,7 @@
src="" width="960"
class="border border-dark d-none">
<video class="video-tag-overallmarhun video-preview" width="960" height="540" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="1920" height="1080" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="3200" height="1800" autoplay=true />
</div>
</div>
<div class="row justify-content-center pt-3">
@@ -24,7 +24,7 @@
src="" width="960"
class="border border-dark d-none">
<video class="video-tag-overallmarhun video-preview" width="960" height="540" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="1920" height="1080" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="3200" height="1800" autoplay=true />
</div>
<input accept="image/png, 'image/jpeg'" type="file" id="inputGroupFile04" name="gambarMarhun" class="d-none">
</div>
@@ -81,7 +81,7 @@
src="" width="960"
class="border border-dark d-none">
<video class="video-tag-overallmarhun video-preview" width="960" height="540" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="1920" height="1080" autoplay=true />
<video class="video-tag-overallmarhun d-none video-data" width="3200" height="1800" autoplay=true />
</div>
<input accept="image/png, 'image/jpeg'" type="file" id="inputGroupFile04" name="gambarMarhun" class="d-none">
</div>