Skip to:
Content
Pages
Categories
Search
Top
Bottom

Site Wide Forums Avatars

  • @amalsh

    Participant

    Hi all,

    Anybody knows how to change the quality of the site wide forums’ users avatars? I want it the same size but higher quality.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • @modemlooper

    Moderator

    add_filter( ‘jpeg_quality’, ‘my_jpeq_quality’ );
    function my_jpeg_quality( $quality ) {
    return 100; //Set quality here

    }

    @djpaul

    Keymaster

    In BP 1.6.2+, it is set to 100 by default.

    @amalsh

    Participant

    Thank you both… I’m using Buddypress Version 1.6.3 but the avatars on forum page appear with low quality…

    I tried your solution modemlooper but nothing changed :S

    @modemlooper

    Moderator

    I didn’t know quality was bumped. :/

    Are your forum avatars enlarged via css, are you looking at the from a high resolution screen like an iphone?

    @amalsh

    Participant

    No, I haven’t done any modification on the size via css & I’m looking at it from a normal resolution screen (from my laptop 🙂 )…

    It’s not like the avatars here, same size but lower quality.

    Thanks

    @slaffik

    Moderator

    Perhaps the image is too small and it just scales… Try to upload the big image (in px) and crop it.

    @amalsh

    Participant

    As I see using “Firebug”, the taken users’ avatars are thumbnails with default size 50×50 and enlarged to 80×80, that’s why its quality is low but the question is how to use the original avatar instead of the thumbnail? What file should be modified for this? I couldn’t find it :S

    @chouf1

    Participant

    jpeg_quality is deprecated since WP 3.5

    use wp_editor_set_quality or WP_Image_Editor::set_quality() instead
    source: codex.wordpress.org/Plugin_API/Filter_Reference

    @amalsh

    Participant

    Thanks… I tried it actually but didn’t work 🙁

    @modemlooper

    Moderator

    you need to bump the bp avatar thumbnail to the display size. 80×80

    define ( ‘BP_AVATAR_THUMB_WIDTH’, 80 );
    define ( ‘BP_AVATAR_THUMB_HEIGHT’, 80 );

    @omgbud

    Participant

    Hey, I use this code below will get good quality thumbs. But I edit the core file topic.php to make this works. define avatar size not working on mine.

    `bp_the_topic_post_poster_avatar( ‘type=full&width=80&height=80’ ); `

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Site Wide Forums Avatars’ is closed to new replies.
Skip to toolbar