Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatars VERY low Quality

  • I am using echo get_avatar( get_the_author_id(), ‘100’ )’ to display a small avatar on non-buddypress areas of my site. But they are coming out VERY low quality. I think this is calling out the tiny version of the avatar and blowing it up.

    What part of the code do I need to change to get the regular avatar? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you look at the URL in the output, does it display better when you load it directly in a web browser? Can you share the URL?

    Hi @DJPaul ! Here is the url I am getting: http://www.terrorsofmen.com/wp-content/uploads/avatars/2/94984fdedaabe60ce4c75a47307d2eba-bpthumb.jpg

    it Needs to be: http://www.terrorsofmen.com/wp-content/uploads/avatars/2/94984fdedaabe60ce4c75a47307d2eba-bpfull.jpg

    I need bpfull instead of bpthumb. I have tried every combination I can think of with ‘type=full’ ‘size=full’ ‘full’ etc but no luck. If you have any idea I’d really appreciate it, my site goes live tomorrow and I’d like to have the avatars looking nice.

    Thanks!!

    As a temporary fix I changed the avatars defualt in bp-core-avatars.php from ‘thumb’ to ‘full’. This works for now but I feel it may slow down my site in the future. If anyone has the full solution let me know!

    I have faced the same issue and as above didnt want to edit the core files. I looked through and did it with js.. It worked for me
    I am putting it below for all who has been looking for a solution and if you have a better solution please update that too
    `
    jQuery(‘.avatar’).each(function(){
    // Replacing the -bpthumb with -bpfull for higher resolution images.
    var source = jQuery(this).attr(‘src’);
    var startIndex = source.lastIndexOf(‘-‘);
    var endIndex = source.lastIndexOf(‘.’);
    var removeValue = source.substring(startIndex, endIndex);
    if(‘-bpthumb’ == removeValue){
    var newSource = source.replace(removeValue, ‘-bpfull’);
    jQuery(this).attr(‘src’, newSource);
    }
    });
    `

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Avatars VERY low Quality’ is closed to new replies.
Skip to toolbar