Skip to:
Content
Pages
Categories
Search
Top
Bottom

Site Wide Forums Avatars

  • Profile photo of Hope
    Hope
    Participant

    @amalsh

    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)
  • Profile photo of modemlooper
    modemlooper
    Moderator

    @modemlooper

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

    }

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

    Profile photo of Hope
    Hope
    Participant

    @amalsh

    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

    Profile photo of modemlooper
    modemlooper
    Moderator

    @modemlooper

    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?

    Profile photo of Hope
    Hope
    Participant

    @amalsh

    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

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

    Profile photo of Hope
    Hope
    Participant

    @amalsh

    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

    Profile photo of danbpfr
    danbpfr
    Participant

    @chouf1

    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

    Profile photo of Hope
    Hope
    Participant

    @amalsh

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

    Profile photo of modemlooper
    modemlooper
    Moderator

    @modemlooper

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

    Profile photo of omgbud
    omgbud
    Participant

    @omgbud

    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