Add Lossless option

This commit is contained in:
Milan Nikolic
2026-06-23 18:16:11 +02:00
parent b7c422fe33
commit a5817c3ba5
4 changed files with 205 additions and 161 deletions
+2
View File
@@ -27,6 +27,8 @@ type Options struct {
Quality int
// Encoder speed/effort, format-specific: webp method 0-6, avif speed 0-10, jxl effort 1-10; -1 uses the format default
Effort int
// Lossless enables lossless compression (webp, avif, jxl), ignores quality
Lossless bool
// Image width
Width int
// Image height