File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -311,8 +311,10 @@ public function generateThumbnail($file_name)
311311
312312 // generate cropped image content
313313 $ this ->setName ($ file_name )->thumb (true );
314+ $ thumbWidth = $ this ->helper ->shouldCreateCategoryThumb () && $ this ->helper ->categoryThumbWidth () ? $ this ->helper ->categoryThumbWidth () : config ('lfm.thumb_img_width ' , 200 );
315+ $ thumbHeight = $ this ->helper ->shouldCreateCategoryThumb () && $ this ->helper ->categoryThumbHeight () ? $ this ->helper ->categoryThumbHeight () : config ('lfm.thumb_img_height ' , 200 );
314316 $ image = Image::make ($ original_image ->get ())
315- ->fit (config ( ' lfm.thumb_img_width ' , 200 ), config ( ' lfm.thumb_img_height ' , 200 ) );
317+ ->fit ($ thumbWidth , $ thumbHeight );
316318
317319 $ this ->storage ->put ($ image ->stream ()->detach (), 'public ' );
318320 }
You can’t perform that action at this time.
0 commit comments