Increase res of images to 400x400

This commit is contained in:
Liam 2022-10-21 16:42:20 +01:00
parent c0d0c4399f
commit 0c2fda413d
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ export default async function handler(req, res) {
}
let buffer = await data.buffer(); // Change to arrayBuffer at some point to make it shush
buffer = await sharp(buffer).resize(150, 150).toBuffer();
buffer = await sharp(buffer).resize(400, 400).toBuffer();
const bytes = buffer.toString("base64");
await RedisUtils.setValue(`${KEY}${mapHash}`.replace(" ", ""), bytes);

View File

@ -46,7 +46,7 @@ export default async function handler(req, res) {
}
let buffer = await data.buffer(); // Change to arrayBuffer at some point to make it shush
buffer = await sharp(buffer).resize(150, 150).toBuffer();
buffer = await sharp(buffer).resize(400, 400).toBuffer();
const bytes = buffer.toString("base64");
await RedisUtils.setValue(`${KEY}${steamId}`, bytes);