mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Use webp for thumbnails
This commit is contained in:
parent
3b6f8d7db1
commit
e2025d3556
@ -161,7 +161,7 @@ export class ImageRendererFactory {
|
|||||||
fit: 'cover',
|
fit: 'cover',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await image.withMetadata().jpeg().toFile(input.outPath);
|
await image.withMetadata().webp({ lossless: true, effort: 6, quality: 65 }).toFile(input.outPath);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user