Fix session image crop adjust to 16:9 aspect ratio from 4:3

remotes/angel/1.11.x
José Loguercio 9 years ago
parent 1491256f6d
commit e386da70f1
  1. 2
      main/inc/lib/extra_field_value.lib.php
  2. 2
      main/session/session_add.php
  3. 2
      main/session/session_edit.php

@ -223,7 +223,7 @@ class ExtraFieldValue extends Model
if ($value['error'] == 0) {
//Crop the image to adjust 4:3 ratio
//Crop the image to adjust 16:9 ratio
$crop = new Image($value['tmp_name']);
$crop->crop($value['crop_parameters']);

@ -45,7 +45,7 @@ $(document).ready(function() {
$image.cropper("destroy");
$image.cropper({
aspectRatio: 4 / 3,
aspectRatio: 16 / 9,
responsive : true,
center : false,
guides : false,

@ -37,7 +37,7 @@ $(document).ready(function() {
$image.cropper("destroy");
$image.cropper({
aspectRatio: 4 / 3,
aspectRatio: 16 / 9,
responsive : true,
center : false,
guides : false,

Loading…
Cancel
Save