Convert an Image into Grayscale Image using HTML/CSSIn this article, we will go through how to create a grayscale version of an image. Having a coloured image, the aim is to convert it to grayscale using CSS properties. To convert an image to grayscale, we mainly use the CSS filter property. The filter feature is mostly used to alter the visual appearance of a picture. Syntax: 1st Method:To turn an image to grayscale, apply the filter grayscale(100%). Output: ![]() 2nd Method:Output: ![]() |
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week