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,7 +23,7 @@ type Decoder struct {
// Decode decodes image from JPEG.
func (d Decoder) Decode() (image.Image, error) {
return jpeg.Decode(d.r, &jpeg.DecoderOptions{
DCTMethod: jpeg.DCTFloat,
DCTMethod: jpeg.DCTIFast,
DisableFancyUpsampling: true,
DisableBlockSmoothing: true,
})