Skip to content

Commit

Permalink
adjust reder image to webp
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Aug 28, 2024
1 parent de9dbb2 commit 1e05c74
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export default class YukiHelp extends plugin {
}))
};
const ScreenshotOptionsData: ScreenshotOptions = {
SOptions: {
type: 'webp',
quality: 90,
},
isSplit: false,
modelName: 'yukiHelp',
};
Expand Down
6 changes: 5 additions & 1 deletion apps/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class YukiVersion extends plugin {
dsc: "优纪版本",
event: "message",
priority: 0,
rule:[
rule: [
{
reg: "^(#|\/)(yuki|优纪)版本$",
fnc: "yukiVersion",
Expand All @@ -36,6 +36,10 @@ export default class YukiVersion extends plugin {
}))
};
const ScreenshotOptionsData: ScreenshotOptions = {
SOptions: {
type: 'webp',
quality: 90,
},
isSplit: false,
modelName: 'yukiVersion',
};
Expand Down
2 changes: 1 addition & 1 deletion models/bilibili/bilibili.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class BiliTask {
isSplit: isSplit,
modelName: 'bilibili',
SOptions: {
type: 'jpeg',
type: 'webp',
quality: 98,
},
saveHtmlfile: false,
Expand Down
2 changes: 1 addition & 1 deletion models/weibo/weibo.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class WeiboTask {
isSplit: isSplit,
modelName: 'weibo',
SOptions: {
type: 'jpeg',
type: 'webp',
quality: 98,
},
saveHtmlfile: false,
Expand Down

0 comments on commit 1e05c74

Please sign in to comment.