favicon-generator-js
v1.0.5
Published
This library can produce different sizes favicons. Take image as input and return with following sizes of favicons.
Downloads
8
Maintainers
Readme
favicon-generator
This is a library that takes imageSrc and sizes and return zip file with the following favicons.
How to use it?
Exmaple:
import generateFavicon from "favicon-generator-js";
generateFavicon(imgSrc, [16, 32, 48], 50)
.then((res) => console.log(res))
.catch((err) => console.log(err));
Here
imgSrc = string type value. // src of an image; [] = This array contains all the desired sizes. 3rd argument = This is the roundness value of the favicon. it must be a number and range is 0-100.