style: make watermark smaller in metadata image

This commit is contained in:
trafficlunar 2025-05-23 17:44:39 +01:00
parent 044d915972
commit 6d9dcde15f

View file

@ -177,7 +177,7 @@ export async function generateMetadataImage(mii: Mii, author: string): Promise<{
{/* Watermark */} {/* Watermark */}
<div tw="absolute bottom-0 right-0 flex items-center"> <div tw="absolute bottom-0 right-0 flex items-center">
<img src={`${process.env.NEXT_PUBLIC_BASE_URL}/logo.svg`} height={40} /> <img src={`${process.env.NEXT_PUBLIC_BASE_URL}/logo.svg`} height={34} />
{/* I tried using text-orange-400 but it wasn't correct..? */} {/* I tried using text-orange-400 but it wasn't correct..? */}
<span tw="ml-2 font-black text-xl" style={{ color: "#FF8904" }}> <span tw="ml-2 font-black text-xl" style={{ color: "#FF8904" }}>
TomodachiShare TomodachiShare
@ -200,8 +200,8 @@ export async function generateMetadataImage(mii: Mii, author: string): Promise<{
try { try {
// I tried using .webp here but the quality looked awful // I tried using .webp here but the quality looked awful
// but it actually might be well-liked due to the hatred of .webp // but it actually might be well-liked due to the hatred of .webp
const fileLocation = path.join(miiUploadsDirectory, "metadata.png"); // const fileLocation = path.join(miiUploadsDirectory, "metadata.png");
await fs.writeFile(fileLocation, buffer); // await fs.writeFile(fileLocation, buffer);
} catch (error) { } catch (error) {
console.error("Error storing 'metadata' image type", error); console.error("Error storing 'metadata' image type", error);
return { error: `Failed to store metadata image for ${mii.id}`, status: 500 }; return { error: `Failed to store metadata image for ${mii.id}`, status: 500 };