Skip to content

Commit 1a4d718

Browse files
authored
Merge pull request #510 from Nikita240/patch-2
Cast the thumbnail object to a string when saving
2 parents 87d0c9e + fd4e72d commit 1a4d718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LfmPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,6 @@ public function makeThumbnail($file_name)
321321
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
322322
->encode();
323323

324-
$this->setName($file_name)->thumb(true)->storage->save($image_content);
324+
$this->setName($file_name)->thumb(true)->storage->save((string) $image_content);
325325
}
326326
}

0 commit comments

Comments
 (0)