Increase res of images to 400x400
This commit is contained in:
parent
c0d0c4399f
commit
0c2fda413d
@ -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
|
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");
|
const bytes = buffer.toString("base64");
|
||||||
|
|
||||||
await RedisUtils.setValue(`${KEY}${mapHash}`.replace(" ", ""), bytes);
|
await RedisUtils.setValue(`${KEY}${mapHash}`.replace(" ", ""), bytes);
|
||||||
|
@ -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
|
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");
|
const bytes = buffer.toString("base64");
|
||||||
|
|
||||||
await RedisUtils.setValue(`${KEY}${steamId}`, bytes);
|
await RedisUtils.setValue(`${KEY}${steamId}`, bytes);
|
||||||
|
Reference in New Issue
Block a user