From 97fc2f40db5045bc958c0627cb3881c91da93a29 Mon Sep 17 00:00:00 2001 From: popovspiridon99 Date: Thu, 18 Sep 2025 17:11:53 +0900 Subject: [PATCH] return buffer --- server/src/tiles/utils/tiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/tiles/utils/tiles.ts b/server/src/tiles/utils/tiles.ts index 2388f98..4a2abe9 100644 --- a/server/src/tiles/utils/tiles.ts +++ b/server/src/tiles/utils/tiles.ts @@ -126,7 +126,7 @@ export async function generateTilesForZoomLevel(uploadDir: string, tileFolder: s Logger.log('sharping step 2') if (initialZoomImage) { - await sharp(initialZoomImage.data.buffer) + await sharp(initialZoomImage.data) .resize({ width: roundUpToNearest(Math.ceil(boundsWidthPixel) + Math.ceil(paddingLeftPixel) + Math.ceil(paddingRightPixel), Math.abs(minX - (maxX + 1))), height: roundUpToNearest(Math.ceil(boundsHeightPixel) + Math.ceil(paddingTopPixel) + Math.ceil(paddingBottomPixel), Math.abs(minY - (maxY + 1))),