Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to make group avatars sharper

  • @kookidooki

    Participant

    Hello,

    I’ve just updated to the latest Buddypress version and noticed that all my group avatars are not sharp anymore (guess this might be related to the auto-resizing of the avatars).

    How and where can I make these avatars sharper?

Viewing 12 replies - 1 through 12 (of 12 total)
  • @henrywright

    Moderator

    Can you check the size of the image on your server?

    @kookidooki

    Participant

    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!

    @kookidooki

    Participant

    @kookidooki

    Participant

    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!

    @kookidooki

    Participant

    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!

    @danbp

    Participant

    Could it be that your theme has some specific CSS for avatars ?

    @kookidooki

    Participant

    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.

    @danbp

    Participant

    @kookidooki,

    See here anything related to “avatar” inside BuddyPress.

    @kookidooki

    Participant

    Thank You so Much!

    Will take a look at it and report results!

    @henrywright

    Moderator

    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).

    @kookidooki

    Participant

    Great! We’re going to check it.

    Thank you!

    @kookidooki

    Participant

    Still haven’t found the solution.

    It appears there’s a problem when displaying avatars in members-masonry only.

    Any idea?

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar