The Less image size function is used to check the dimension of the image from the file. It checks both width and height of the image.
Let’s take an example to demonstrate the usage of image size function in the Less file.
Create a HTML file named “simple.html”, having the following data.
HTML file: simple.html