🐛 webp 无法处理大图片,改成 png

*PostID:47621154
This commit is contained in:
BTMuli
2024-01-12 00:14:27 +08:00
parent a86dbc0007
commit cfe3570d12
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ function getImageTitle(): string {
function getImageUrl(): string {
const img = props.data.insert.image;
const append = "?x-oss-process=image/format,webp";
const append = "?x-oss-process=image/format,png";
return img + append;
}
</script>

View File

@@ -71,7 +71,7 @@ export function getPostCover(item: TGApp.Plugins.Mys.News.Item): string {
if (cover === undefined) {
cover = defaultCover;
} else {
cover = `${cover}?x-oss-process=image/format,webp`;
cover = `${cover}?x-oss-process=image/format,png`;
}
return cover;
}