Skip to content

Commit

Permalink
Change mediaSession image size to 512x512
Browse files Browse the repository at this point in the history
  • Loading branch information
Plextora committed Oct 1, 2024
1 parent 680297f commit 8c2db5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/router/resource-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Router.respond("resource::getMediaSessionImage", async (_evt, bgPath) => {
return none();
}
const mimeType = `image/${path.extname(pathToBg).slice(1)}`;
const buffer = await sharp(pathToBg).resize(400, 400).toBuffer();
const buffer = await sharp(pathToBg).resize(512, 512).toBuffer();

return some(`data:${mimeType};base64,${buffer.toString("base64")}`);
});
Expand Down

0 comments on commit 8c2db5a

Please sign in to comment.