question

Talha avatar image
Talha asked

Specify the size of Avatar?

Is there any way to specify the size of the avatar for the player. Right now it just downloads the image from a url, the image could be of any size, (unscaled). Does playfab provide us with any scaling option? to scale the avatar to 12x120 etc?

because avatar shouldnt be 1200x9000.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Talha avatar image
Talha answered

no worries found it. But have to do it on clients device.
https://pastebin.com/qkkhWs2J

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

It's more convenient to do it on clients. PlayFab doesn't provide such a built-in feature. If you want to handle the pictures on the server-side and provide a URL to PlayFab Avatar. You need to use an external picture cloud storage service and external picture online handler.

1 Like 1 ·
Talha avatar image Talha Sarah Zhang commented ·

Yeah, I've found the solution we are doing it client side.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.