[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 u/derram 06 Sep 2016 03:00
https://archive.is/pCROo :
https://archive.is/pCROo :
https://archive.is/PgcdK :
This has been an automated message.
1 u/netk6 [OP] 06 Sep 2016 21:13
Yeah, buddy! fuck facebook!
1 u/saintPirelli 06 Sep 2016 19:17
Neat! You mind me asking what language/framework you're running on the backend?
1 u/netk6 [OP] 06 Sep 2016 21:13
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 u/saintPirelli 09 Sep 2016 11:00
That's really interesting, thanks. Awesome project.
1 u/Northvvait 06 Sep 2016 21:54
I'm curious, exactly how many sites out there have a 128x128 favicon?
1 u/netk6 [OP] 06 Sep 2016 22:05
There's a little table with this information on the homepage.
Here is it:
*edit: … aaand it's updating, numbers are increasing again!
1 u/Northvvait 06 Sep 2016 22:55
Oops!
My excuse: users never read the documentation!
1 u/netk6 [OP] 06 Sep 2016 23:15
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 u/netk6 [OP] 07 Sep 2016 20:32
I've updated the homepage. I find it looks nicer like that. Those numbers are better on the top.
Thanks for the feedback!
1 u/pepperspray 06 Sep 2016 23:27
Cool project, beware that the url parser is case sensitive.
1 u/netk6 [OP] 06 Sep 2016 23:34
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 u/pepperspray 06 Sep 2016 23:50
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 u/netk6 [OP] 07 Sep 2016 00:02
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 u/netk6 [OP] 07 Sep 2016 20:28
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!