menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Spectrum Support

This community is a great place to ask questions, report bugs, and chat with the Spectrum team.

Channels
Team

Avatars quality is to low!

March 11, 2019 at 2:34pm

Avatars quality is to low!

March 11, 2019 at 2:34pm (Edited 3 years ago)
I tested it for few times and noticed when you register via Twitter that avatar quality is very very low.
Here you can check the image quality after registering on Spectrum via Twitter:
And here you can check the original image quality from Twitter:
Are you guys aware of this issue?

March 11, 2019 at 3:45pm
We might be using the wrong field to grab profile photo urls from auth providers - would love a PR if you can help us figure that one out!
like-fill
1

March 12, 2019 at 11:46am
Thanks for response. As I could notice from the url you are calling 256x256 dimension, and actual size of image is 512x512. Guess that is problem ?
This is getting passed on a high res photo and getting compressed along the way, will check out.
And some other images were compressed too. If I post a image using the form, it always loses the quality. Which does not change as long as I use a site like imgur.
Image
Edited
like-fill
1
I made a quick comparison and trying to understand the reasoning behind dpr:2 and auto on the settings. Link to image: https://i.imgur.com/oGkBaaP.png
Image
PS: DPR stands for Device Pixel Ratio.
Edited
like-fill
1
You are right, the photo passed by the twitter auth is very small, here is a sample link: https://pbs.twimg.com/profile_images/939364868829802496/WkSiX778_normal.jpg
Image
It's ultra small
The only way is to replace the url part normal with 400x400 and you get a good profile picture from twitter.
If you got other ways, let me know.

March 13, 2019 at 3:27pm
how's that fix working? Is it stable for us to implement?
I am not sure how to test this out programally except manually checking twitter login few times. So far all accounts I tested has 400x400 picture.
like-fill
1

March 16, 2019 at 1:10pm
The last fix was for twitter, now I see google and facebook login also has ultra low quality. Will have to investigate this issue.
Edited
like-fill
1
Thats indeed a case, and wondering how none noticed that, since you had ten of thousands of users here ^^
This is how it looks on spectrum, http://i.imgur.com/eK24eNz.png
like-fill
1
resolution is to low, that image is literally useless to have :D