Start with highest quality compression and find a suitable size (#33)
This commit is contained in:
parent
8652b74a38
commit
838fc601c1
7 changed files with 108 additions and 48 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue