Skip to content

Commit

Permalink
fix: print image content
Browse files Browse the repository at this point in the history
  • Loading branch information
fish.yu committed Apr 17, 2024
1 parent 78e01e1 commit 5042a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class Downloader {
if (format === 'lakeboard' && cover) {
// 上传图片到github
const content = await downloadImage(cover);
console.log('download image:', content);
const imageName = crypto.randomUUID() + '.' + cover.split('.').pop();
const imageUrl = `/_images/${imageName}`;
await gh.writeFile(imageUrl, content)
Expand Down

0 comments on commit 5042a3f

Please sign in to comment.