From 780c0e678d30d112667c090cc20c50f28c4a8000 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 24 May 2016 13:21:18 -0700 Subject: [PATCH] Changed min dimensions to 500 from 300 --- app/Http/Controllers/AssetModelsController.php | 2 +- app/Http/Controllers/AssetsController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/AssetModelsController.php b/app/Http/Controllers/AssetModelsController.php index 8459b79f60..6eaef55f8e 100755 --- a/app/Http/Controllers/AssetModelsController.php +++ b/app/Http/Controllers/AssetModelsController.php @@ -110,7 +110,7 @@ class AssetModelsController extends Controller $image = Input::file('image'); $file_name = str_random(25).".".$image->getClientOriginalExtension(); $path = public_path('uploads/models/'.$file_name); - Image::make($image->getRealPath())->resize(300, null, function ($constraint) { + Image::make($image->getRealPath())->resize(500, null, function ($constraint) { $constraint->aspectRatio(); $constraint->upsize(); })->save($path); diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index a9652b69b1..e42a8d60b3 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -212,7 +212,7 @@ class AssetsController extends Controller $image = Input::file('image'); $file_name = str_random(25).".".$image->getClientOriginalExtension(); $path = public_path('uploads/assets/'.$file_name); - Image::make($image->getRealPath())->resize(300, null, function ($constraint) { + Image::make($image->getRealPath())->resize(500, null, function ($constraint) { $constraint->aspectRatio(); $constraint->upsize(); })->save($path); @@ -366,7 +366,7 @@ class AssetsController extends Controller $image = Input::file('image'); $file_name = str_random(25).".".$image->getClientOriginalExtension(); $path = public_path('uploads/assets/'.$file_name); - Image::make($image->getRealPath())->resize(300, null, function ($constraint) { + Image::make($image->getRealPath())->resize(500, null, function ($constraint) { $constraint->aspectRatio(); $constraint->upsize(); })->save($path);