Add ZipLevel, issue #48

This commit is contained in:
Milan Nikolic
2026-06-24 07:55:16 +02:00
parent 04a047aa2e
commit 3f0ae41456
5 changed files with 117 additions and 2 deletions
+3
View File
@@ -23,6 +23,8 @@ type Options struct {
Format string
// Archive format, valid values are zip, tar
Archive string
// ZIP compression level: -1 default, 0 store (no compression), 1-9 deflate (1 fastest, 9 smallest)
ZipLevel int
// JPEG image quality
Quality int
// Encoder speed/effort, format-specific: webp method 0-6, avif speed 0-10, jxl effort 1-10; -1 uses the format default
@@ -137,6 +139,7 @@ func NewOptions() Options {
o.Archive = "zip"
o.Quality = 75
o.Effort = -1
o.ZipLevel = -1
o.Filter = 2
return o