MyBB Community Forums

Full Version: Avatars pushed to CDN are not resized
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Whenever a user uploads an avatar it is not downsized when pushed to the CDN, they are just squashed to 140x140 by html/css. Therefore avatars currently are a huge performance impact for our forum.

Forum URL: http://tubecenter.net
CDN URL: http://tc-static.net
Version: 1.8.3 (fresh install at 1.8.0)

We host the CDN on the exact same server. The only reason we do this is to have a cookie-free domain for our static resources.

While the avatars on tc-static.net remain huge, the avatars on tubecenter.net are resized properly... this confuses me. What am I doing wrong? Huh
That's... odd. I'll have to look again at avatar uploads, I'm going to guess that when I implemented the CDN feature I might be pushing them just before resize or something. I'll see what I can find.
(2015-01-16, 03:49 PM)Euan T Wrote: [ -> ]That's... odd. I'll have to look again at avatar uploads, I'm going to guess that when I implemented the CDN feature I might be pushing them just before resize or something. I'll see what I can find.

Thank you! I'll be monitoring this thread for updates. Smile
Is there any chance for this to be fixed in 1.8.4? Not meaning to rush any of you but it looks like a rather small fix to me and it's seriously affecting our site's performance.
I'll look at it this afternoon. 1.8.4 is due rather soon, so I'm not sure if the patch will be merged in time though.
Fixed, just needs reviewed by the team: https://github.com/mybb/mybb/pull/1824
(2015-02-08, 03:13 PM)Euan T Wrote: [ -> ]Fixed, just needs reviewed by the team: https://github.com/mybb/mybb/pull/1824

Awesome, thanks! Heart
I have discovered another bug, possibly related to this one. It's not as urgent though.

Avatars are not pushed to CDN when changed in admin cp.
Hm. I'd guess the ACP isn't using upload_avatar or something. I'll have to look into it. Issue: https://github.com/mybb/mybb/issues/1829