master
writeJPEG
func writeJPEG(w io.Writer, img image.Image, opt *JPEGEncodeOptions) error { if w == nil { return ErrWriterNotSet } else if img == nil { return ErrImageNotSet