[Pidgin] #460: Choose buddy icon should resize my icon for XMPP.

Pidgin trac at pidgin.im
Wed May 2 13:42:06 EDT 2007


#460: Choose buddy icon should resize my icon for XMPP.
------------------------------+---------------------------------------------
  Reporter:  doconnor         |       Owner:  seanegan
      Type:  enhancement      |      Status:  new     
  Priority:  minor            |   Milestone:          
 Component:  winpidgin (gtk)  |     Version:  2.0     
Resolution:                   |    Keywords:          
   Pending:  0                |  
------------------------------+---------------------------------------------
Comment (by chckens):

 This error message is slightly ambiguous. Pidgin can (and does, from my
 testing) resize images to be of suitable pixel dimensions (the XMPP spec
 says icons SHOULD be between 32 and 96 pixels, and Pidgin adheres to
 this). Problem is that images also SHOULD use less than 8 kilobytes of
 data.

 Without having studied the code too closely, I'd guess what is happening
 here is images are being resized to the maximum allowable dimensions, then
 later tested for file size, which is > 8KB. Any reasonably complex PNG
 image measuring 96x96 pixels is likely to end up > 8KB.

 XEP-0084 also says that 64x64 is the recommended size for avatars. I guess
 better behaviour would be to target 64x64 pixels when scaling icons, and
 thus have a much lower chance of falling foul of the 8KB limit.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/460#comment:4>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list