A basic Go application that applies a grayscale overlay to PNG images. Please note, due to limitations of the Go image package, this can only support PNG images. The quality isn't great but it does the job for me so I'm happy 😂
In order to run greyscalr locally, you will need Go installed on your machine. If you don't have Go installed, please download the Go binary from here and follow the official installation instructions.
In this demo, I've converted a photograph I took in 2017 of a paraglider on top of Monte Baldo:mountain: in Italy from colour to greyscale.
git clone
this repository.- Navigate to the repository.
- Copy the image you want to greyscale into the working directory.
- Run
go run main.go paraglider.png
(Remember to pass the image name as a parameter). - Open the folder and there will be a
paraglider-grayscale.png
file in the directory 🙂
Hat tip to Golang Programs for the image boundary logic.