You can use this package to convert an image to css box-shadow property.
- Install the package using
npm i -g @tonalmathew/image-to-css.
-hor--helpfor help.-for--filefor entering input file.-oor--outputfor the output destination folder name.
-
Enter
image-to-css -f <file_name> -o <output_folder_name> -
Entering the above command will create a new folder, and the folder will contain a
index.htmlandstyle.cssfile. -
You can open the
index.htmlfile in any browser to see the output.