[Pidgin] #11565: New bug in AIM, cannot auto-resize your own buddy-icon images

Pidgin trac at pidgin.im
Sat Mar 27 17:36:19 EDT 2010


#11565: New bug in AIM, cannot auto-resize your own buddy-icon images
---------------------+------------------------------------------------------
 Reporter:  Novalus  |        Owner:  MarkDoliner
     Type:  defect   |       Status:  closed     
Milestone:  2.7.0    |    Component:  AIM        
  Version:  2.6.6    |   Resolution:  fixed      
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by markdoliner at pidgin.im):

 (In [5596fda5b3d5323e89b01f2a273b71eb74156b46]):[[BR]]
 Change pidgin_convert_buddy_icon() to be more accommodating when
 attempting
 to scale a large buddy icon.  I spent entirely too much time on this, but
 I'm pretty happy with the result.

 We now try to set increasingly lower quality levels when trying to save
 as a jpeg until we have an image that is smaller than the max file size
 limit specified by the prpl.  If the image is still too large when quality
 level is 70, we'll try scaling down the image dimensions to be 80% of the
 size we just tried.

 Fixes #11565

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


More information about the Tracker mailing list