diff --git a/src/controllers/CropController.php b/src/controllers/CropController.php index 5d27d422..ccb7de24 100644 --- a/src/controllers/CropController.php +++ b/src/controllers/CropController.php @@ -49,7 +49,7 @@ public function getCropimage($overWrite = true) ->crop($dataWidth, $dataHeight, $dataX, $dataY) ->save($crop_path); - if (config('lfm.should_create_thumbnails')) { + if (config('lfm.should_create_thumbnails', true)) { // create thumb folder parent::createFolderByPath(parent::getThumbPath()); diff --git a/src/traits/LfmHelpers.php b/src/traits/LfmHelpers.php index 6cfacd37..c0427128 100644 --- a/src/traits/LfmHelpers.php +++ b/src/traits/LfmHelpers.php @@ -529,7 +529,7 @@ public function fileIsImage($file) */ public function imageShouldHaveThumb($file) { - if (! config('lfm.should_create_thumbnails')) { + if (! config('lfm.should_create_thumbnails', true)) { return false; }