From a452604bcefae98d1dc7e76d5492f6cdd08ebfe3 Mon Sep 17 00:00:00 2001 From: Stream Date: Thu, 23 Mar 2017 14:44:21 +0800 Subject: [PATCH] fix config of thumb width and height not working --- src/controllers/CropController.php | 2 +- src/controllers/UploadController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/CropController.php b/src/controllers/CropController.php index 1dbe5102..5788bc0c 100644 --- a/src/controllers/CropController.php +++ b/src/controllers/CropController.php @@ -46,7 +46,7 @@ public function getCropimage() // make new thumbnail Image::make($image_path) - ->fit(200, 200) + ->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200)) ->save(parent::getThumbPath(parent::getName($image_path))); event(new ImageWasCropped($image_path)); } diff --git a/src/controllers/UploadController.php b/src/controllers/UploadController.php index 84287486..8c97c57a 100644 --- a/src/controllers/UploadController.php +++ b/src/controllers/UploadController.php @@ -138,7 +138,7 @@ private function makeThumb($new_filename) // create thumb image Image::make(parent::getCurrentPath($new_filename)) - ->fit(config('thumb_img_width', 200), config('thumb_img_height', 200)) + ->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200)) ->save(parent::getThumbPath($new_filename)); }