diff --git a/pages/api/smallLand.js b/pages/api/smallLand.js index d0c47a6..cdd73b9 100644 --- a/pages/api/smallLand.js +++ b/pages/api/smallLand.js @@ -7,7 +7,10 @@ export default async function handler(req, res) { try { const image = await Jimp.read(baseURL + img) - image.resize(166,166).getBuffer(Jimp.MIME_PNG, (err, buffer) => { + image + .crop(4,168,412,190) + .resize(318,146) + .getBuffer(Jimp.MIME_PNG, (err, buffer) => { res.statusCode = 200 res.setHeader("Content-Type", "image/png"); res.write(buffer)