diff --git a/app/Services/MarhunPhotoService.php b/app/Services/MarhunPhotoService.php index f8e2cd9f..63392384 100644 --- a/app/Services/MarhunPhotoService.php +++ b/app/Services/MarhunPhotoService.php @@ -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); } } diff --git a/public/js/marhun-photo-capture.js b/public/js/marhun-photo-capture.js index 33ad724b..32d01223 100644 --- a/public/js/marhun-photo-capture.js +++ b/public/js/marhun-photo-capture.js @@ -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 !== '') { diff --git a/resources/views/marhun/partials/camera_modals.blade.php b/resources/views/marhun/partials/camera_modals.blade.php index d3db00ce..1b3956e0 100644 --- a/resources/views/marhun/partials/camera_modals.blade.php +++ b/resources/views/marhun/partials/camera_modals.blade.php @@ -22,7 +22,7 @@ src="" width="960" class="border border-dark d-none"> - + @@ -81,7 +81,7 @@ src="" width="960" class="border border-dark d-none"> - +