BuddyDev

Search

Blurry-avatar-images

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #49007

    Hi Carsten,
    My assumption is some css causing it. Will check in the day on the site and assit.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #49008

    Just had a look at your screenshot and you can see the last rule is forcing 50px.

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #49012

    Hi Brajesh, thank you again for spotting this issue.
    This is not a custom css, neither from the buddypress.min.css file, so where does this rule belong?

    Apparently it is not possible to overwrite in custom css, so how can I delete or change this?

    img[Attributes Style] {
        width: 50px;
        aspect-ratio: auto 50 / 50;
        height: 50px;
    }

    Regards
    Carsten

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #49015

    Hi Carsten,
    I am sorry, that is coming from avatar attributes and that’s why you are unable to change.

    1. have you changed the avatar thumb size? It seems that BuddyPress is still utilizing the size ’50px’ for thumb leading to the issue.

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #49028

    Hi Brajesh, thanks for the clarification.

    1. Yes, the avatar thumb size has been changed to 110px.

    
    if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) )
        define( 'BP_AVATAR_THUMB_WIDTH', 110 ); //change this with your desired thumb width
     
    if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
        define( 'BP_AVATAR_THUMB_HEIGHT', 110 ); //change this with your desired thumb height
     
    if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) )
        define( 'BP_AVATAR_FULL_WIDTH', 450 ); //change this with your desired full size,weel I changed it to 260 :)
     
    if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) )
        define( 'BP_AVATAR_FULL_HEIGHT', 450 ); //change this to default height for full avatar
    

    Regards
    Carsten

    • This reply was modified 1 year, 7 months ago by calu.
  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #49031

    Hi Carten,
    Can you please try re-uploading your profile photo to see if it regenerates?
    Also, have you put the code in bp-custom.php or somewhere else?

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #49032

    Hi Brajesh, the code is in functions.php and is working fine with profile photo and widget avatars, except for avatars in the Who’s Online widget.

    Regards
    Carsten

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #49033

    Hi Carsten,
    That’s strange. The who’s online widget takes dimensions of thumbnail, so that should have worked. I will ask @ravisharma to test and assist.

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #49036

    Hi Brajesh, yes it is a bit strange, as the same avatar appears in the correct size 110x110px in the other widget.

    https://imgur.com/v8krXFo

    https://imgur.com/oD35fJr

    https://imgur.com/illQGUd

    Thanks, I appreciate Ravi is looking into this issue.

    Regards
    Carsten

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #49105

    Hi Carsten,
    Hope you are doing well.

    Ravi checked and reported that BuddyPress Who’s online avatar block has the 50px hard coded. Any chance you are using that block?

You must be logged in to reply to this topic.

This topic is: not resolved