MyBB Community Forums

Full Version: There is any way to show squared avatars?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have a question, there is any way to make MyBB show squared avatars without lose the aspect/ratio of the picture?

So, if someone uploads a new avatar and its rectangular and show it as an square in postbit?

It is possible?
(03-31-2015, 02:47 AM)alv4 Wrote: [ -> ]there is any way to make MyBB show squared avatars without lose the aspect/ratio of the picture? It is possible?

It's not technically possible anywhere, not only in MyBB. That's how raster graphics work - pixels aren't dynamic and can't be resized without losing the correct ratio.

The only solution would be to add rectangular images inside a <div> with a padding - but that still wouldn't really make them look like squares either and requires a plugin.
(03-31-2015, 01:12 PM)Destroy666 Wrote: [ -> ]
(03-31-2015, 02:47 AM)alv4 Wrote: [ -> ]there is any way to make MyBB show squared avatars without lose the aspect/ratio of the picture? It is possible?

It's not technically possible anywhere, not only in MyBB. That's how raster graphics work - pixels aren't dynamic and can't be resized without losing the correct ratio.

The only solution would be to add rectangular images inside a <div> with a padding - but that still wouldn't really make them look like squares either and requires a plugin.

I though that!
It is comprensible.
Thanks!