Should resize large photo when applying as an avatar
Not sure if this is even possible (maybe by adding some image resizing API, or maybe Java already has one). Currently if a user chooses very large image as an avatar (e.g. 3000x5000 pixels and lots of MB) it then takes a few seconds for the other party to open a chat windows with that person. There is already a plugin for Openfire to resize vCard stored avatars, but when using different server that might not be an option and Spark in itself could be more intelligent about that.
Issue with stretching moved to
Current solution stretches smaller images to 64x64 size and makes them blurred. Would be better to not change smaller images.