Skip to content

Commit a452604

Browse files
committed
fix config of thumb width and height not working
1 parent 378ebfb commit a452604

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers/CropController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getCropimage()
4646

4747
// make new thumbnail
4848
Image::make($image_path)
49-
->fit(200, 200)
49+
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
5050
->save(parent::getThumbPath(parent::getName($image_path)));
5151
event(new ImageWasCropped($image_path));
5252
}

src/controllers/UploadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function makeThumb($new_filename)
138138

139139
// create thumb image
140140
Image::make(parent::getCurrentPath($new_filename))
141-
->fit(config('thumb_img_width', 200), config('thumb_img_height', 200))
141+
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
142142
->save(parent::getThumbPath($new_filename));
143143
}
144144

0 commit comments

Comments
 (0)