In some cases, developers will want to offer the ability to update a users profile picture or avatar based on game art.

Permissions

Before you may use the avatar update API, permission must be added by an admin. Please use a contact form to request to request access. Note that moderation of images is still required. We are working to automate the moderation process further.

Example Useage

ID.Profile.updateAvatar(File, callback);

The first argument is a File object. It can be a local file from a form input or a file read using the FileReader API. The FileReader API, allows files from the DataTransfer API and the HTMLCanvasElement API. The second argument will call a callback function when the operation is complete.