Skip to content

Commit

Permalink
0.0.21 fit contain
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Apr 19, 2023
1 parent 72431d8 commit 6bf5fbd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion built/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ async function proxyHandler(request, reply) {
else if ('badge' in request.query) {
const mask = (await sharpBmp(file.path, file.mime))
.resize(96, 96, {
fit: 'inside',
fit: 'contain',
position: 'centre',
withoutEnlargement: false,
})
.greyscale()
Expand Down
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.20",
"version": "0.0.21",
"description": "The Media Proxy for Misskey",
"main": "built/index.js",
"packageManager": "[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ async function proxyHandler(request: FastifyRequest<{ Params: { url: string; };
} else if ('badge' in request.query) {
const mask = (await sharpBmp(file.path, file.mime))
.resize(96, 96, {
fit: 'inside',
fit: 'contain',
position: 'centre',
withoutEnlargement: false,
})
.greyscale()
Expand Down

0 comments on commit 6bf5fbd

Please sign in to comment.