Add avif files, do not compress cbz
This commit is contained in:
parent
063839d80d
commit
eec5514738
2
arch.go
2
arch.go
@ -43,6 +43,8 @@ func Compress(archPath, contentDir string) error {
|
||||
|
||||
toolCmd := exec.Command(
|
||||
toolPath,
|
||||
"-tzip",
|
||||
"-mx=0",
|
||||
"a", archPath,
|
||||
contentDir+string(filepath.Separator)+"*",
|
||||
)
|
||||
|
2
media.go
2
media.go
@ -37,7 +37,7 @@ func parseVolumeIndex(path string) *int {
|
||||
|
||||
func isImagePath(path string) bool {
|
||||
switch strings.ToLower(filepath.Ext(path)) {
|
||||
case ".jpg", ".jpeg", ".png", ".webp", ".bmp", ".gif":
|
||||
case ".jpg", ".jpeg", ".png", ".webp", ".bmp", ".gif", ".avif":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user