Add avif files, do not compress cbz

This commit is contained in:
Alex Yatskov 2024-10-18 21:46:29 -07:00
parent 063839d80d
commit eec5514738
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ func Compress(archPath, contentDir string) error {
toolCmd := exec.Command( toolCmd := exec.Command(
toolPath, toolPath,
"-tzip",
"-mx=0",
"a", archPath, "a", archPath,
contentDir+string(filepath.Separator)+"*", contentDir+string(filepath.Separator)+"*",
) )

View File

@ -37,7 +37,7 @@ func parseVolumeIndex(path string) *int {
func isImagePath(path string) bool { func isImagePath(path string) bool {
switch strings.ToLower(filepath.Ext(path)) { switch strings.ToLower(filepath.Ext(path)) {
case ".jpg", ".jpeg", ".png", ".webp", ".bmp", ".gif": case ".jpg", ".jpeg", ".png", ".webp", ".bmp", ".gif", ".avif":
return true return true
default: default:
return false return false