Support » Plugin: WP Biographia » Lower resolution image when using Buddypress

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author vicchi

    (@vicchi)

    Hi,

    It looks like BuddyPress is plugging the WordPress get_avatar function and is serving up avatar images sized at 35px square. You’re using WP Biographia’s default avatar size setting of 100px square so the avatar images are being scaled up and loose their resolution.

    I’m not a BuddyPress user but I would hope that this is either a configurable setting within BuddyPress or within the BuddyPress template that you’re using.

    So you can either try to make BuddyPress serve up avatars at a larger size and thus a higher resolution or you can tell WP Biographia to serve up avatars at a smaller size to match those that it’s getting from BuddyPress.

    -Gary

    Plugin Author vicchi

    (@vicchi)

    Haven’t heard back from you in over 2 weeks so I’m going to assume you’ve either fixed this or it isn’t an issue any more. Feel free to get back in touch if it still is.

    -Gary

    Hi I have faced a similar problem but not using this plugin but while using buddypress, For all the images which are uploaded and not fetch from gravatar.com … loads a low resolution image.

    After a research I found that low resolution image has the image source ending as -bpthumb where as the high resolution one ends with -bpfull and it is all going on in bp-core-avatars.php, few filters are available to change this but didnt work through out the site so I made my own hack. I did it using js and it worked for me .

    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);
            }
        });

    You can change the selector if it doesnt work for you, but it should
    Hope it helps 🙂

    Plugin Author vicchi

    (@vicchi)

    Nice work-around; thanks for this. I never did hear back from the original poster as to whether the problem was solved from within BuddyPress or from within the theme.

    -Gary

    🙂 ..

    Hope it helps other users 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lower resolution image when using Buddypress’ is closed to new replies.