Avatar upload restrictions?

The avatar I make in gimp, png or jpg is rejected.
Random junk pic i choose uploads fine.
Any debug on the error?
Inform user about limitations.