Uniform Organiser Image Upload

* Preserve Aspect Ratio
* Use the same size no matter where the upload is happening
This commit is contained in:
JapSeyz 2016-11-19 22:17:05 +01:00
parent 56556bf05e
commit 0f3737e02a
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ class OrganiserController extends MyBaseController
$img = Image::make($file_full_path);
$img->resize(250, 250, function ($constraint) {
$constraint->aspectRatio();
$constraint->upsize();
});

View File

@ -64,7 +64,7 @@ class OrganiserCustomizeController extends MyBaseController
$img = Image::make($the_file);
$img->resize(200, 200, function ($constraint) {
$img->resize(250, 250, function ($constraint) {
$constraint->aspectRatio();
$constraint->upsize();
});