- Joined
- Jan 19, 2018
- Messages
- 67
I've noticed that if a user has set their own avatar, it seems like that image is resized on the fly by a user's browser when you visit pages. There are times I visit a comment section and for a second or two I see everyone's full-size avatar images taking over the screen before they're shrunk back down to avatar size, and if I right click -> view image, it takes me to a full-res image rather than a resized, typical avatar-sized one.
I doubt the bandwidth used by requesting full-size images for avatars really stacks up meaningfully at all against, you know, running a manga hosting site, but if y'all are ever looking for an easy way to shave a bit off that usage, I think you could make some immediate gains by doing a single resize server-side to a typical avatar pixel size when a user uploads an image in addition to the 1mb upload limit. I did a small check (md5sums match) and there's no manipulation done to whatever the uploaded image is, it sends the whole file to the user for all the avatars on the page.
I doubt the bandwidth used by requesting full-size images for avatars really stacks up meaningfully at all against, you know, running a manga hosting site, but if y'all are ever looking for an easy way to shave a bit off that usage, I think you could make some immediate gains by doing a single resize server-side to a typical avatar pixel size when a user uploads an image in addition to the 1mb upload limit. I did a small check (md5sums match) and there's no manipulation done to whatever the uploaded image is, it sends the whole file to the user for all the avatars on the page.
Maintenance will be performed on the forums for the next couple of days. Expect some downtime.