Given an image and the task is to convert the image into blur image using CSS property. In CSS, filter property is used to convert an image into blur image. Filter property is mainly used to set the visual effect of an image.
Syntax:
filter: blur()
Example 1: This example use blur filter to convert the image into blur image.
Original Image:

<!DOCTYPE html> <html> <head> <title>Convert into blur image</title> <style> img { -webkit-filter: blur(4px); filter: blur(4px); } h1 { color:green; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <h2>Blur Image</h2> <img src= width="500px" height="250px" alt="filter applied" /> </center> </body> </html> |
Output:

Example 2: This example use blur filter to create background blur image.
Original Image:

<!DOCTYPE html> <html> <head> <title> Convert into blur image </title> <style> img { -webkit-filter: blur(4px); filter: blur(4px); } h1 { color:green; } .backgr-text { position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%); text-align: center; } </style> </head> <body> <center> <img src= width="500px" height="250px" alt="filter applied" /> <div class="backgr-text"> <h1>GeeksforGeeks</h1> <h2>Blurred Background Image</h2> </div> </center> </body> </html> |
Output:

Recommended Posts:
- Convert an image into grayscale image using HTML/CSS
- How to Create Loading Blur Text Animation Effect using HTML and CSS ?
- How to make a glass/blur effect overlay using HTML and CSS ?
- How to create Animated Blur Navbar using CSS?
- How to convert an HTML element or document into image ?
- HTML | DOM blur() Method
- Javascript | Window Blur() and Window Focus() Method
- AngularJS | ng-blur Directive
- Node Jimp | Blur
- CSS | blur() Function
- Nodejs | GM blur() Function
- SVG Blur Effects
- How to get the new image URL after refreshing the image using JavaScript ?
- How to Upload Image into Database and Display it using PHP ?
- How to fit the image into modal popup using Bootstrap?
- How to convert an array into object using stdClass() in PHP?
- Convert string into date using JavaScript
- How to convert a plain object into ES6 Map using JavaScript ?
- How to convert JSON results into a date using JavaScript ?
- How to Convert HTML Table into Excel Spreadsheet using jQuery ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

