Jpegtran

Convert an image to grayscale
apt install libjpeg-progs jpegtran -grayscale kiss.jpg > kiss2.jpg