Skip to content

Commit

Permalink
fix config of thumb width and height not working
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Mar 23, 2017
1 parent 378ebfb commit a452604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/CropController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit a452604

Please sign in to comment.