How to get high resolution website logo (favicon) for a given URL

前端 未结 5 1147
情深已故
情深已故 2020-12-13 14:29

I\'m developing a web browser on Android and want to show the URL logo for the most visited sites like in Chrome (4 X 2). But the problem is that most favicons (eg: http://w

5条回答
  •  盖世英雄少女心
    2020-12-13 14:58

    Logos are not going to be consistently named and very difficult to identify consistently. Consider putting the favicon on a colour tile of suitable dimensions. People will quickly associate the colour with the website. You could either extract a dominant colour from the website or favicon using something like colorthief, or make each one unique using a golden angle formula to choose a hue.

提交回复
热议问题