Is MyBB supposed to make avatars less than 100x100 100x100?
#1
I've noticed on my forum (which I just removed the width/height code for) and on here, a avatar less than 100x100 gets scaled up to 100x100, which in my case, distorts the avatar.

Is this expected behavior?
Avatar by Rein.
#2
MyBB doesn't do any image resizing - it does set the avatar size to a fixed size (to prevent remote avatars from having excessively large dimensions).
#3
ZiNgA BuRgA Wrote:MyBB doesn't do any image resizing - it does set the avatar size to a fixed size (to prevent remote avatars from having excessively large dimensions).

Ah, I see. So if you're using a remote avatar, and it's less than 100x100, it'll get upscaled, then, I assume?
Avatar by Rein.
#4
As far as I know, MyBB doesn't do any kind of upscaling in regards to avatars.

It doesn't. No matter what type of avatar it is (uploaded, remote hosted) the avatar size does not increase.
@ryanashbrook
Do NOT PM me for Support!
#5
Ryan Ashbrook Wrote:As far as I know, MyBB doesn't do any kind of upscaling in regards to avatars.

It doesn't. No matter what type of avatar it is (uploaded, remote hosted) the avatar size does not increase.

Then look in the source for this page, and search for "albel.png". You notice is says...

<!-- start: postbit_avatar -->
<img src="http://symphonicheaven.com/albel.png" alt="" width="100" height="100" />
<!-- end: postbit_avatar -->

And if you check my avatar, it says it is 81 x 99 pixels. So MyBB by default is streching out my avatar to 100 x 100 pixels (which distorts is, in my case).
Avatar by Rein.
#6
What kind of avatar is this? (upload/gallery/remote)

MyBB will sometimes add the width/height info if it can be detected.
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net
#7
Soshite Wrote:
ZiNgA BuRgA Wrote:MyBB doesn't do any image resizing - it does set the avatar size to a fixed size (to prevent remote avatars from having excessively large dimensions).

Ah, I see. So if you're using a remote avatar, and it's less than 100x100, it'll get upscaled, then, I assume?
Yes and no.

The avatar dimensions will be set when you set the remote avatar, I believe, however, it won't be able to detect if the avatar has changed remotely.

Take this example:
You are on my forum, and you want to exceed a 100x100 avatar limit. You think up a devilish plan (not really, lol) and upload a valid avatar to your server (let's say it's 80x90), set your remote avatar in my forum, then replace the avatar on your end with, let's say, a 200x200 avatar. Now if the size property wasn't there, your avatar would be a 200x200 image, however, the size property restricts this, and will cause the 200x200 avatar to downscale back to the previous 80x90.
This also works the other way around - if you linked a 100x100 avatar, and later changed it to 50x50 remotely, the size stored in MyBB says that it's 100x100, thus, the avatar will be fixed to 100x100. The way around this is to set your avatar again, so that MyBB can refresh its details on the avatar.
#8
Oh, i see. Wink
Avatar by Rein.


Forum Jump:


Users browsing this thread: 1 Guest(s)