avif support
This commit is contained in:
parent
8fece9090f
commit
e5d410d809
@ -14,7 +14,7 @@ interface ComicDesc {
|
|||||||
character?: string[];
|
character?: string[];
|
||||||
tags?: string[];
|
tags?: string[];
|
||||||
}
|
}
|
||||||
const ImageExt = [".gif", ".png", ".jpeg", ".bmp", ".webp", ".jpg"];
|
const ImageExt = [".gif", ".png", ".jpeg", ".bmp", ".webp", ".jpg", ".avif"];
|
||||||
export class ComicReferrer extends createDefaultClass("comic") {
|
export class ComicReferrer extends createDefaultClass("comic") {
|
||||||
desc: ComicDesc | undefined;
|
desc: ComicDesc | undefined;
|
||||||
pagenum: number;
|
pagenum: number;
|
||||||
|
@ -68,7 +68,7 @@ function releaseZip(path: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function renderZipImage(ctx: Context, path: string, page: number) {
|
async function renderZipImage(ctx: Context, path: string, page: number) {
|
||||||
const image_ext = ["gif", "png", "jpeg", "bmp", "webp", "jpg"];
|
const image_ext = ["gif", "png", "jpeg", "bmp", "webp", "jpg", "avif"];
|
||||||
const marked = markUseZip(path);
|
const marked = markUseZip(path);
|
||||||
const zip = await acquireZip(path, marked);
|
const zip = await acquireZip(path, marked);
|
||||||
const entries = (await entriesByNaturalOrder(zip)).filter((x) => {
|
const entries = (await entriesByNaturalOrder(zip)).filter((x) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user