Skip to content

Commit

Permalink
quality, effort変更
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Mar 17, 2023
1 parent 78cf246 commit 405e6a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/image-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 405e6a5

Please sign in to comment.