This is just a code in a funny contest at: https://www.facebook.com/groups/335069743983293/permalink/340879163402351/
Write a program that covert a .jpg color picture to a .jpeg greyscale picture.
- Without external libraries by Golang.
- Using maximum 5 go routines.
- Have use command line paramters.
Using avarage formula to convert RGB to grey-scale.
grey = (r + g + b) / 3
The main function recives 2 input:
- param1: Path to the input file.
- param2: Path to the ouput file.
Eg:
./main ./color.jpg ./dest.jpg