mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
Also increase the size for proxy.
This commit is contained in:
parent
2d5e836e96
commit
6d65843f78
1 changed files with 2 additions and 2 deletions
|
@ -31,9 +31,9 @@ export async function proxyMedia(ctx: Koa.Context) {
|
||||||
let image: IImage;
|
let image: IImage;
|
||||||
|
|
||||||
if ("static" in ctx.query && isConvertibleImage) {
|
if ("static" in ctx.query && isConvertibleImage) {
|
||||||
image = await convertToWebp(path, 498, 280);
|
image = await convertToWebp(path, 996, 560);
|
||||||
} else if ("preview" in ctx.query && isConvertibleImage) {
|
} else if ("preview" in ctx.query && isConvertibleImage) {
|
||||||
image = await convertToWebp(path, 200, 200);
|
image = await convertToWebp(path, 400, 400);
|
||||||
} else if ("badge" in ctx.query) {
|
} else if ("badge" in ctx.query) {
|
||||||
if (!isConvertibleImage) {
|
if (!isConvertibleImage) {
|
||||||
// 画像でないなら404でお茶を濁す
|
// 画像でないなら404でお茶を濁す
|
||||||
|
|
Loading…
Reference in a new issue