Add jpegli

This commit is contained in:
Milan Nikolic
2025-06-13 18:42:00 +02:00
parent 84135f3304
commit 711ad2f102
9 changed files with 83 additions and 5 deletions

View File

@@ -23,6 +23,9 @@ type Encoder struct {
// Encode encodes image to JPEG.
func (e Encoder) Encode(img image.Image) error {
return jpeg.Encode(e.w, img, &jpeg.EncoderOptions{
Quality: 75,
Quality: 75,
DCTMethod: jpeg.DCTIFast,
ProgressiveMode: false,
OptimizeCoding: false,
})
}