Skip to content

Convert to Grayscale

Jeet edited this page Jul 27, 2022 · 1 revision

The input file in this case is a color image and it gets converted to a grayscale image

Command Line

Original image:

Original Image

Convert to grayscale:

$loomis -command gray -i testdata/green-bee-eater-color.jpg

Grayscale image:

Grayscale Image

Library Usage

newImage := pkg.ConvertToGrayscale(imgage)

image is of type image.Image

Clone this wiki locally