Can you check the size of the image on your server?
Hi Henry,
The avatars have size 80×80 px on server, but I want to have all of them 150x150px for groups avatar. Is there a way to change default size of uploaded images to 150x150px?
See screenshot: http://imgur.com/iKaTfKw
Thanks!
Hello I guess that I’ve found the culprit!
Go to your theme > buddypress > groups > groups-loop.php ; edit this file.
Search for:
“><?php bp_group_avatar( ‘type=full&width=80&height=80’ );
Change 80 into 150.
It works for a moment…. then it reverts back to the same situation. It’s still has the size 80x80px.
I’m missing something. What other files have to be changed?
This is the solution:
go to your child-theme > functions.php (create one if you don’t have this).
Add this code to your functions.php file:
define ( ‘BP_AVATAR_THUMB_WIDTH’, 150 );
define ( ‘BP_AVATAR_THUMB_HEIGHT’, 150 );
define ( ‘BP_AVATAR_FULL_WIDTH’, 150 );
define ( ‘BP_AVATAR_FULL_HEIGHT’, 150 );
And you’re all set!
Found new problems:
All avatars are not sharp when at:
…/members-masonry/
…/members-carousel/
…/groups/groupsname_1/members/
All avatars are not sharp and all are having original size 50x50px inflated to 150x150px.
Can’t find the script that controls default size 50x50px, rendering unsharp avatars.
Pls need help. I want to have clear, sharp avatars size 150x150px in the above mentioned pages.
Thanks!
Could it be that your theme has some specific CSS for avatars ?
I’ve checked that too but it’s initially uploading avatar to server in format 50x50px; then it’s inflating to, for example, 150x150px.
Can’t find the script that controls uploaded avatar size 50x50px.
Thank You so Much!
Will take a look at it and report results!
You could be using the thumb sized avatar. Check your theme to make sure the full sized image is being used. bp_core_fetch_avatar()
is the function used by BuddyPress to display avatars but there’s also get_avatar()
so check for that too (it’s a WordPress function).
Great! We’re going to check it.
Thank you!
Still haven’t found the solution.
It appears there’s a problem when displaying avatars in members-masonry only.
Any idea?