func Grayscale(img image.Image) *image.Gray {
	gray := image.NewGray(img.Bounds())
	size := img.Bounds().Size()
	utils.ParallelForEachPixel(size, func(x, y int) {
		gray.Set(x, y, color.GrayModel.Convert(img.At(x, y)))
	})
	return gray
}
Grayscale takes an image on any type and returns the equivalent grayscale image represented on 8 bits.
package grayscale
import (
	"github.com/Ernyoke/Imger/utils"
	"image"
	"image/color"
)