Added favicon and logo to website

This commit is contained in:
danielvici123
2025-05-16 20:55:47 +02:00
parent cf7e3d3775
commit 32f339fbda
21 changed files with 1422 additions and 125 deletions

View File

@@ -34,6 +34,15 @@ export async function POST(req: NextRequest) {
case 'gif':
convertedBuffer = await sharpInstance.gif().toBuffer()
break
case 'ico':
convertedBuffer = await sharpInstance
.resize(256, 256, {
fit: 'contain',
background: { r: 0, g: 0, b: 0, alpha: 0 }
})
.png()
.toBuffer()
break
default:
throw new Error('Unsupported format')
}