Skip to content

Commit 6234f53

Browse files
committed
Support thumbnail creation on non-local filesystems
1 parent 77781d2 commit 6234f53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LfmPath.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ public function makeThumbnail($file_name)
313313
// generate cropped image content
314314
$image_path = $this->setName($file_name)->thumb(true)->path('absolute');
315315
$image = Image::make($original_image->get())
316-
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
317-
->save($image_path);
316+
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200));
317+
318+
$this->storage->put($image_path, $image->stream()->detach());
318319
}
319320
}

0 commit comments

Comments
 (0)