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: |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India