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)); }