No need to perform this task yourself. There is a web based utility that will not only create you websites favorites icon “favicon.ico” but it will also generate a desktop icon. The desktop icon is used when someone saves a link to their desktop.

Note: It’s best to start with an original image that is exactly square so it does not get distorted.

Click the blue button below to try this tool yourself

Favicon maker- Create a favicon from any image