Skip to Content Skip to Menu

Some new users are still able to upload rectangular avatars?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 year 6 months ago #333779 by krileon
I don't know why it's not working for some users. You'd need the original image they're using to figure out why it specifically is causing problems, but it's likely due to the image having weird aspect ratio like a large landscape image or really large portrait image. It's also possible whatever device they uploaded from isn't loading in the cropping behavior for some reason as again the cropping is client side, which if that fails server side just resizes it to fit within the maximum.

The sizes I recommend for the avatar are as follows.

Maximum Image Height: 160
Maximum Image Width: 160
Maximum Thumbnail Height: 80
Maximum Thumbnail Width: 80

There isn't much reason to have an avatar as big as 610px. The canvas layout won't even display an image larger than 180px.

With CB 3.x I'll be entirely rewriting all core fields including the image field, which will get a significantly more robust cropping functionality. The plan is to store the original (up to a maximum), resized, and thumbnail instead of just resized and thumbnail to allow future edits as well as minimum sizes.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: NFA

Please Log in or Create an account to join the conversation.

  • NFA
  • NFA
  • OFFLINE
  • Posts: 84
  • Thanks: 15
  • Karma: 0
1 year 6 months ago - 1 year 6 months ago #333785 by NFA
Thank you! I think we set it years ago to 610, so we got better pictures for sharing user profiles on social media like Facebook (og:image) share's. I have now changed it back to your settings, because nowadays, a CB Auto Action generate custom images for all the social shares where the Avatar is only a small part of it. Maybe resetting it to 160 will solve the problems, because for the width it was exactly that 610, so the max values worked I guess ;-)

I'm really looking forward to CB 3.x with all those new options. Your avatar-field improvements sound very good. Thank you so much for all your great software development!
Last edit: 1 year 6 months ago by NFA.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum