From 9d3363f61ed12913c3fd2dd42cb47b6526353778 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 4 Jun 2026 17:13:43 -0400 Subject: [PATCH] Pass IMAGE_SIZE_CONFIG_POSTS to gallery compressImage call --- src/lib/api/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index 9770bf2d91..6f92e2a1dd 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -355,7 +355,10 @@ async function resolveMedia( const items: $Typed[] = await Promise.all( imagesDraft.map(async (image, i) => { logger.debug(`Compressing image #${i}`) - const {path, width, height, mime} = await compressImage(image) + const {path, width, height, mime} = await compressImage( + image, + IMAGE_SIZE_CONFIG_POSTS, + ) logger.debug(`Uploading image #${i}`) const res = await uploadBlob(agent, path, mime) return {