/pidgin/main: cac9a5d4fe33: MXit: Don't limit the uploaded avata...

Andrew Victor andrew.victor at mxit.com
Wed Jan 30 03:38:13 EST 2013


Changeset: cac9a5d4fe338fe800a226e9ba40de550fb23525
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2013-01-30 10:20 +0200
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/cac9a5d4fe33

Description:

MXit: Don't limit the uploaded avatar image to 96x96.
The MXit backend systems will now rescale avatar images dynamically to the size
and format requested by the client, so send the original image (or as close
to the original as fits within 800x800 and the maximum file size).

diffstat:

 libpurple/protocols/mxit/mxit.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (18 lines):

diff --git a/libpurple/protocols/mxit/mxit.c b/libpurple/protocols/mxit/mxit.c
--- a/libpurple/protocols/mxit/mxit.c
+++ b/libpurple/protocols/mxit/mxit.c
@@ -725,11 +725,10 @@ static PurplePluginProtocolInfo proto_in
 	NULL,					/* user_splits */
 	NULL,					/* protocol_options */
 	{						/* icon_spec */
-		"png",												/* format */
+		"png,jpeg,bmp",										/* supported formats */
 		32, 32,												/* min width & height */
-		MXIT_AVATAR_SIZE,									/* max width */
-		MXIT_AVATAR_SIZE,									/* max height */
-		100000,												/* max filesize */
+		800, 800,											/* max width & height */
+		CP_MAX_FILESIZE,									/* max filesize */
 		PURPLE_ICON_SCALE_SEND | PURPLE_ICON_SCALE_DISPLAY	/* scaling rules */
 	},
 	mxit_list_icon,			/* list_icon */



More information about the Commits mailing list