From 4c8fd006f6a994783a43e4744a3167db7aefc159 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 6 May 2025 22:50:28 +0300 Subject: New Edit Profile dialog on web, use new Edit Image dialog everywhere (#8220) --- src/lib/media/manip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/media/manip.ts') diff --git a/src/lib/media/manip.ts b/src/lib/media/manip.ts index ff5b71ace..4578406e0 100644 --- a/src/lib/media/manip.ts +++ b/src/lib/media/manip.ts @@ -24,7 +24,7 @@ import {type Dimensions} from './types' export async function compressIfNeeded( img: PickerImage, - maxSize: number = 1000000, + maxSize: number = POST_IMG_MAX.size, ): Promise { if (img.size < maxSize) { return img -- cgit 1.4.1