CBZ: add JPEG XL support

This commit is contained in:
John Factotum
2023-12-30 12:21:08 +08:00
parent 1ff2d530c4
commit 35f749dd7c
+1 -1
View File
@@ -16,7 +16,7 @@ export const makeComicBook = ({ entries, loadBlob, getSize }, file) => {
cache.delete(name)
}
const exts = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.svg']
const exts = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.svg', '.jxl']
const files = entries
.map(entry => entry.filename)
.filter(name => exts.some(ext => name.endsWith(ext)))