mirror of
https://github.com/gen2brain/cbconvert
synced 2026-06-30 09:11:54 +02:00
Add ZipLevel, issue #48
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user