[VOATDEV?] Easily get a PNG icon related to any domain name or URL in any size

4    06 Sep 2016 02:32 by u/netk6

Hi gals & guys!

First of all, this is self promotion. I'm the author of the page linked below (no ads) and I have another +1.2 year account here on Voat, but I would like them to remain separated. With that out of the way, I hope it will help at least one person…

Executive summary

This website can get the favicon related to any domain name or URL in any size.

It can be used to decorate any link to help users figure out where they go to.

Example:

Without: "Like my <a href="https://www.facebook.com/Official.AntiZuckerberg/">page</a>"
With: "Like my <a href="https://www.facebook.com/Official.AntiZuckerberg/"><img alt="" src="http://favicon.netk6.com/16/facebook.com"> page</a>"

Keywords: synergy, paradigm, buzzword, leverage, win-win, blah blah, proactive.

Developer summary

Get the Voat favicon in 16×16: http://favicon.netk6.com/16/voat.co
Get the Google favicon in 32×32: http://favicon.netk6.com/32/google.com
Get the favicons of http://maps.google.com/ in 24×24: http://favicon.netk6.com/24/http:%2F%2Fmaps.google.com%2F

Available sizes: 16×16, 24×24, 32×32, 64×64, 128×128. Every icon is available in its smaller form, but not reciprocally.

More info: http://favicon.netk6.com/

▼○▲ᴛ summary

Currently, Voat displays the domain name of the post's URL in a smaller gray font. Wouldn't it be nice if it also displayed the favicon for that domain?

Some subverses kind of hacked a limited solution like this in their custom CSS. See /v/fatpeoplehate, no offense.
It really helps to skip a website you don't like (i.e. reddit). There are +2 million icons available.

Depending on the support on this post, I may cross-post it to /v/voatdev.
You are free to do it yourself though.

Cheers!

15 comments

2
1

Yeah, buddy! fuck facebook!

1

Neat! You mind me asking what language/framework you're running on the backend?

1

Not a all! Thanks for your interest.

It's a mixture of shell scripts, imagemagick, PHP and tweaked Apache configs on a crude Debian install. Nothing fancy on the software side. Hardware is much better.

There's no framework, as I wrote it all myself. The first update (connecting to +1 million websites) took about 8 hours. A refresh now takes about 2.

Cheers!

1

That's really interesting, thanks. Awesome project.

1

I'm curious, exactly how many sites out there have a 128x128 favicon?

1

There's a little table with this information on the homepage.

Here is it:

W × H Path Total icons Total size
16×16 16/ 2,089,567 2.5GB
24×24 24/ 969,398 1.8GB
32×32 32/ 943,181 1.7GB
64×64 64/ 322,174 1010MB
128×128 128/ 165,549 969MB

*edit: … aaand it's updating, numbers are increasing again!

1

Oops!

My excuse: users never read the documentation!

1

It's fine! Unless you didn't even look at the page, it means I did not properly construct it.

Back to the blackboard!

0

I've updated the homepage. I find it looks nicer like that. Those numbers are better on the top.

Thanks for the feedback!

1

Cool project, beware that the url parser is case sensitive.

1

Thank you a lot for this bug report, you are correct!

URL paths are case sensitive, but domain names aren't.

I'm looking into it right now. I'll report back!

1

Damn, that was fast, keep up the great work. Take a look at this, i think you will find it useful https://css-tricks.com/almanac/properties/i/image-rendering/

1

Thanks for the useful link. I'm planning to find a way to display the best version depending on screen resolution and DPI. This will be useful!

0

Just to let you know that I've looked in the case-sensitivity issue, but the fix won't be easy considered the current architecture and rewrite rules. I'll have more time over the week-end though.

Cheers!