[Gossip-dev] Avatars+Gossip+Telepathy

Mikael Hallendal micke at imendio.com
Mon Nov 6 10:23:49 CET 2006


Richard Hult skrev:
> Xavier Claessens skrev:
>> I think a good idea is to store avatars in PNG files, the name of the
>> file can be used to know for which contact the PNG is for. This way
>> users can get avatars from (for example)
>>
>>  ~/.gnome2/Gossip/<account>/<id>.png
>>
>> Another solution is to store it in XML or plain-text file using base64
>> encoded.
> 
> I've planned to implement a cache for avatars, by storing the images on 
> disk with the hash value that is already used to identify the image as 
> filename. Then we won't have to fetch the avatars from the server unless 
> they change. Would this work for your use case as well?

Even better :)

To clearify my other post, I was meaning to say that the cost of sending
them over D-BUS is probably very small compared to actually fetch them
over TCP from the server. A cache that makes Gossip not fetch the
avatars from any protocol implementation in case they are up to date
would be optimal.

Now Richard, as soon as you have implemented a Socks proxy for Loudmouth
2 you should hack on this! *nods and winks*

Cheers,
  Mikael Hallendal


-- 
Imendio AB, http://www.imendio.com/


More information about the Gossip-dev mailing list