2008-01-24 The file is too large for XMPP

What the hell is this about? Whenever I try to use buddy icons for myself or others I run into this problem when I use Pidgin. “The file ’blabla’ is too large for XMPP. Please try a smaller image.” What’s the definition of “small”? And why is everybody else using “large” images? What am I doing wrong? Grrrr. 🙁

Pidgin

​#Pidgin ​#Software

Comments

(Please contact me if you want to remove your comment.)

Maybe it’s not about the image dimensions, but the file size, in bytes?

– RadomirDopieralski 2008-01-25 14:11 UTC

RadomirDopieralski

---

Strangely enough I’ve never seen this message from Adium which also uses libgaim, so Adium must either ignore something, or automatically do the right thing. Weird.

– Alex Schroeder 2008-01-25 19:26 UTC

Alex Schroeder

---

http://developer.pidgin.im/ticket/460

05/02/2007 01:42:06 PM changed 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.”

Hope this helps other people.

– John Stavrakakis 2008-04-01 01:07 UTC

---

Thanks for this info! 😄

– Alex Schroeder 2008-04-01 06:07 UTC

Alex Schroeder