func NewJpeg(quality int, optimizer, progressive bool, dct config.DCTMethod) JPEG {
	return JPEG{
		Options: jpeg.EncoderOptions{
			Quality:         quality,
			OptimizeCoding:  optimizer,
			ProgressiveMode: progressive,
			DCTMethod:       (jpeg.DCTMethod)(dct),
		},
	}
}
// NewJpeg use mozjpeg to JPEG image encoding, decoding
NewJpeg use mozjpeg to JPEG image encoding, decoding
// NewJpeg use mozjpeg to JPEG image encoding decoding
func NewJpeg(quality int, optimizer, progressive bool, dct config.DCTMethod) JPEG {
	return JPEG{
		Options: jpeg.EncoderOptions{
			Quality:         quality,
			OptimizeCoding:  optimizer,
			ProgressiveMode: progressive,
			DCTMethod:       (jpeg.DCTMethod)(dct),
		},
	}
}
func NewJpeg ( quality int , optimizer , progressive bool , dct config . DCTMethod ) JPEG { return JPEG { Options : jpeg . EncoderOptions { Quality : quality , OptimizeCoding : optimizer , ProgressiveMode : progressive , DCTMethod : ( jpeg . DCTMethod ) ( dct ) , } , } }
NewJpeg use mozjpeg to JPEG image encoding, decoding
NewJpeg use mozjpeg to JPEG image encoding decoding