NyaaPantsu / nyaa

Nyaa.se replacement written in golang
MIT License
994 stars 148 forks source link

Avatar Images #379

Open yiiTT opened 7 years ago

yiiTT commented 7 years ago

When signing up or changing account settings there should be a field to enter a image URL. If the image URL field is empty then use Gravatar. Also there should be a check box to set avatar to default (use ID 0 - れんちょん's avatar) if they don't want to use Gravatar. Gravatar to be removed

thewisenerd commented 7 years ago

instead of having strict rules on max avatar resolution and filesize, can't we let the server deal with it? iirc, imgur already supports auto resized images in small square, big square, etc; thus, we could scale all uploaded images to a fixed "square" resolution from the image host side.

p.s. assuming the user doesn't use a square image, with a bit of CSS, we can just get that centered; because, hey; the user decided not to use a square image... (or deal with it in the image host, either way.)

s-varezhkin commented 7 years ago

let the server deal with it Can't we just set size in frontend?

s-varezhkin commented 7 years ago

Nice fucking formatting github

thewisenerd commented 7 years ago

nah, having it set in the front end will definitely increase user load, if some user decides (against all shred of reason) that having a 1MB profile picture is the way to go.

jithatsonei commented 7 years ago

can we blacklist mixtape.moe instead and just force doko.moe

thewisenerd commented 7 years ago

is the reason for this because images uploaded to mixtape.moe get "lost" ?