Favatars
OK, favatars implemented, pretty much. I’ve blown them up to 40×40; not sure if this is a good idea, and I’ll remove it if I need to. But now you all get little icons next to your comment if you leave a URL, and that URL has a favicon. The “no icon” icon needs to be a lot better, but I’m in a rush right now. The whole damned site needs a redesign, I think. Nice simple little Python CGI, though. I love Python, in case you hadn’t realised.
Update: how the magic was done.
Oh, and, yes, I need to work out what’s going on with the Python Imaging Library turning transparent icon backgrounds into black. Don’t know what that’s all about.
72 minutes later
It’s weird. Wish I understood imaging stuff.
73 minutes later
Gotta have a play with this…
78 minutes later
That’s really cool :) Doesn’t like transparencies very much (it renders them black instead of white) – any way you can fix that?
79 minutes later
(reads up. feels sheepish.)
79 minutes later
Hi.
Great idea!
119 minutes later
Simon: I’m working on it. Any assistance gratefully taken and used :)
Note the update above with a link to an explanation, so you can steal the code if you prefer.
2 hours later
Let’s try mine..
Nice idea by the way!
2 hours later
Damn. Now I need to get a favicon. Plus the fact that I share my site with someone else means we both have to use the same favatar….
3 hours later
mrben: yeah, I know. This is the problem that gravatars were meant to solve, and they do that rather neatly; I’m just not using them for reasons mentioned in posts passim. This whole favatar thing is a hack and no mistake. :)
3 hours later
You should probably display them inline with the name, rather than above. Currently, the are perceived as grouped with the above permalink which makes them look rather out of place.
Still nice work.
3 hours later
Of course that last favicon looks totally wrong because I bollocksed up my URL in an earlier comment and didn’t notice until now. At least I’ve demonstrated the power of visual stimuli.
3 hours later
Looks neat and cool
3 hours later
jsut to see it working
3 hours later
Oh, my favicon has gone missing :(
What I was going to do was a version of what Aquarion did with links in his journal to Livejournal but have favicons pulled from the linked URL in question. Been on my project list for months and now you’ve done half the work for me :)
3 hours later
want to see mine!
4 hours later
Kevin: yours doesn’t work, apparently because the Python Imaging Library doesn’t support your favicon.ico: it says “IOError: Unsupported BMP pixel depth“. Don’t know why, sorry, but I don’t think that there’s anything that I can do about that…
4 hours later
testing
4 hours later
Very nice! You wrote before about the cgi script caching favicons, although the load time makes it seem like not cached. Am I seeing a lag from script execution or from remote image retrieval?
5 hours later
andrew: not sure. I think it’s script execution, since the caching thing works pretty quickly. Er. I think. It’s difficult to tell, because the browser caches the images as well…
6 hours later
That’s pretty nice. I may need to borrow this idea. Not sure how easy it is to read .ico files with PHP, but we’ll see.
6 hours later
It’s not that I don’t believe you, but I thought I’d better do a test and see if I’m the winner in the ‘most boring icon’ competition.
9 hours later
Nuts. It didn’t work.
9 hours later
There should be an obvious way of editing your “being rememberedness“, rather than having to “Forget Me” (which I just had to do to add a URL).
Also, I m going to have to fudge up my URL since I’d usually give my lj there, but that doens’t have an appropriate favicon… :-)
9 hours later
Oh, and since most favicons are 16×16 with optional 32×32 copies then 32×32 might be a better size to blow them up to (or 64×64).
9 hours later
Rob: works now. Not sure what went wrong there; it obviously didn’t work for some reason and then cached the failure…
9 hours later
Senji: good idea on the 32×32 thing, and implemented.
9 hours later
Just wanted a go too.
10 hours later
This sound’s pretty cool. I’ll have a try then.
14 hours later
Nice. I’ve got to see this in action
16 hours later
Just testing.
17 hours later
Neat idea
18 hours later
Aquarion: the script doesn’t currently support the inline SHORTCUT ICON link tag. Need to update it for that.
20 hours later
testing… :-)
20 hours later
Rewinding a little and expanding on the idea for using autodiscovered foaf I have suggested using autodiscovery to export your chosen avatar.
Perhaps you could check for this before going for the favicon to give everyone the choice of avatars in better formats.
20 hours later
Just checking to see what favicon formats are supported.
22 hours later
Hm, a link relation value of “icon” doesn’t seem to be supported. How come?
22 hours later
Lars: laziness on my part, really. It would make parsing a bit slower if, in addition to looking for rootofserver/favicon.ico, I have to fetch the supplied URL and parse it for the rel=icon tag. I will probably do it at some point…
24 hours later
Okay, I’ll try it. If the results are what I expect, then I’ll have to think seriously about stealing this for my own site…
26 hours later
Eric: looks to have worked. Steal away, although I don’t know how well the code generalises. Of course, stealing the principles and doing your own implementation is perfectly fine if the code can’t be used directly.
27 hours later
Really neat idea! Just testing here, really.
27 hours later
Cool idea.
2 days later
This is a test, because my /favicon.ico is now a “303 – See Other” link, and I’m curious as to whether it works :-)
5 days later
Aquarion: seems not. :)
I’ll look at that :)
5 days later
This is only a test. I repeat: ONLY A TEST!
3 weeks later
ThaNerd: your favicon doesn’t seem to work, because the Python Imaging Library says “Unsupported BMP pixel depth“. I don’t really know what this means, I’m afraid…
3 weeks later
Great idea !
3 weeks later
sil, my favicon uses the new icon bitdepth that was introduced with Windows XP, the 32 bits colors format (24 bits + 8 bits alpha channel)… As far as i know, it is supported on windows XP built-in, but if i don’t mistake, Firefox (which displays the icon even without bookmarking the website) supports that icon format in all operating system, even those older than Windows 2000…
But i’m not sure, though…
I’ll check wether image magick is able to convert from 32-bits ico to alpha png…
4 weeks later
Good http://chinadishlasvegas.firez.org
19 weeks later
Great site, please let me know http://advanced-sql.atspace.com
19 weeks later
I will test it…
25 weeks later