Avatar API reset avatar.coordinates.message
Hello All,
How do I reset avatar.coordinates.message to null (or the original state) through an API?
When a user edits their avatar on desktop, they can crop and pan an image. This creates a profile setting named avatar.coordinates.message. This may look like this:
{"name": "avatar.coordinates.message","type": "string","$": "158,136,383,281"},
We are allowing users to upload a custom avatar through our customized mobile app, and while I can strip out the coordinates from the mobile code by "entry.avatarURL = member.avatarURL.split('/image-coordinates')[0];", the desktop version is completely wrong because old coordinate crop info is not reset when using '/profiles/name/url_icon/set' (seems like you would auto reset the coordinates when a new image is set)
Thanks,
Britt
- Hey Britt,
I'm not sure if this is what you're looking for but you can use the url_icon_h and url_icon_w profile fields to set the height and width that you want for your avatar.
You should be able to set the profile fields using the /profiles/name/url_icon_w/set and /profiles/name/url_icon_h/set calls and they both take an integer specifying the size.
In fact you might even be able to set the coordinates field directly using /profiles/name/avatar.coordinates.message/set.
Hope this helps,
Yuri