mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-01-27 16:28:12 +00:00
Add jpegli
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user