From 0c2fda413d046d41b466763815f23f19b4191962 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Fri, 21 Oct 2022 16:42:20 +0100 Subject: [PATCH] Increase res of images to 400x400 --- pages/api/beatsaver/art/[hash].js | 2 +- pages/api/steamavatar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/beatsaver/art/[hash].js b/pages/api/beatsaver/art/[hash].js index b0ea3c6..8f5d47e 100644 --- a/pages/api/beatsaver/art/[hash].js +++ b/pages/api/beatsaver/art/[hash].js @@ -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); diff --git a/pages/api/steamavatar.js b/pages/api/steamavatar.js index 16899ff..303f6bb 100644 --- a/pages/api/steamavatar.js +++ b/pages/api/steamavatar.js @@ -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);