Fix image compression (close #41)

zio/stable
Paul Frazee 2023-01-18 14:54:55 -06:00
parent 1898d5dbaa
commit ace0e6bfd9
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export async function resize(
opts: ResizeOpts,
): Promise<Image> {
for (let i = 0; i < 9; i++) {
const quality = 1.0 - i / 10
const quality = 100 - i * 10
const resizeRes = await ImageResizer.createResizedImage(
localUri,
opts.width,