pagerbeauty icon indicating copy to clipboard operation
pagerbeauty copied to clipboard

Avatar's size is too large and slow to load

Open geekeren opened this issue 5 years ago • 1 comments

The avatar loaded very very slowly, and I found the size with 2048x2048 may be very unnecessary.

image

https://github.com/sergiitk/pagerbeauty/blob/3416af7a6055016e209a905fa5f2882012f7c617/src/assets/javascripts/views/OnCallViews.jsx#L261

It shows the avatar takes up 3.5 MB!

image

I suggested to set the size to 128 x 128

geekeren avatar Jun 24 '19 08:06 geekeren

Thank you for the feedback @geekeren. I used the larger image possible because PagerBeauty is supposed to be scalable. You're right, 2048x2048 feels like an overkill. However, I think 128x128 is too small too. The best way to go would be making it configurable. I'll do that, and set a more sensible default resolution.

sergiitk avatar Jun 24 '19 14:06 sergiitk