Uniform Organiser Image Upload
* Preserve Aspect Ratio * Use the same size no matter where the upload is happening
This commit is contained in:
parent
56556bf05e
commit
0f3737e02a
|
|
@ -63,6 +63,7 @@ class OrganiserController extends MyBaseController
|
|||
$img = Image::make($file_full_path);
|
||||
|
||||
$img->resize(250, 250, function ($constraint) {
|
||||
$constraint->aspectRatio();
|
||||
$constraint->upsize();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue