1
0
forked from noxious/server

famous last words: fuck (changing ORM)

This commit is contained in:
2024-12-24 15:27:24 +01:00
parent ac4cefa902
commit 241cfb3eb2
6 changed files with 107 additions and 42 deletions

View File

@ -158,9 +158,12 @@ export default class SpriteUpdateEvent {
const processedInput = await sharp(buffer)
.ensureAlpha()
.resize({
width: frameWidth, // Set maximum width
height: frameHeight, // Set maximum height
fit: 'inside', // Ensure image fits within dimensions
kernel: sharp.kernel.nearest,
fit: 'contain',
position: 'center'
position: 'center',
withoutEnlargement: true // Don't enlarge smaller images
})
.png({
compressionLevel: 9,