From 838fc601c1f89f028862212d169aebe4163c8672 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 26 Dec 2022 12:01:40 -0600 Subject: Start with highest quality compression and find a suitable size (#33) --- src/state/lib/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/state/lib/api.ts') diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts index f0f33d134..31df20468 100644 --- a/src/state/lib/api.ts +++ b/src/state/lib/api.ts @@ -14,7 +14,7 @@ import {AtUri} from '../../third-party/uri' import {RootStoreModel} from '../models/root-store' import {extractEntities} from '../../lib/strings' import {isNetworkError} from '../../lib/errors' -import {downloadAndResize} from '../../lib/download' +import {downloadAndResize} from '../../lib/images' import {getLikelyType, LikelyType, getLinkMeta} from '../../lib/link-meta' const TIMEOUT = 10e3 // 10s @@ -85,6 +85,7 @@ export async function post( width: 250, height: 250, mode: 'contain', + maxSize: 100000, timeout: 15e3, }).catch(() => undefined) if (thumbLocal) { -- cgit 1.4.1