Skip to content

Commit fd4e72d

Browse files
authored
Cast the thumbnail object to a string when saving
1 parent 687a02d commit fd4e72d

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)