diff --git a/package.json b/package.json index b274024..d552e8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey-media-proxy", - "version": "0.0.17", + "version": "0.0.18", "description": "The Media Proxy for Misskey", "main": "built/index.js", "packageManager": "pnpm@7.28.0", diff --git a/src/image-processor.ts b/src/image-processor.ts index 1d8ec61..dcb6d9a 100644 --- a/src/image-processor.ts +++ b/src/image-processor.ts @@ -16,12 +16,13 @@ export type IImageStream = { export type IImageStreamable = IImage | IImageStream; export const webpDefault: sharp.WebpOptions = { - quality: 85, + quality: 77, alphaQuality: 95, lossless: false, nearLossless: false, smartSubsample: true, mixed: true, + effort: 2, }; export function convertToWebpStream(path: string, width: number, height: number, options: sharp.WebpOptions = webpDefault): IImageStream {