Skip to content

Normalising avatar textures programatically #1

Description

@calummackervoy

In Avatar.gd there is a function init_new_player, which initialises a new player with (amongst other things) their portrait

Currently all portraits are 512*512 in PNG format and the code takes advantage of that

In order to accept portraits from the internet we should accept different sizes (although it's OK to put some restrictions like filetype on the portrait). So the code here needs to be adapted based on the image size

Ideally we would also place a circular filter on the image so that they're always round although this might be easier in JavaScript

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions