Skip to:
Content
Pages
Categories
Search
Top
Bottom

Image upload quality


  • deeblake
    Participant

    @deeblake

    Is there someway to set the image quality for cover image and avatar image uploads? I’m seeing very poor image quality after uploading images, and have determined that the image files are being compressed, thus resulting in the poor quality.

    I’ve tried changing the image dimensions via code, but to no avail.

    I can see that the file uploaded is much smaller that the original. How can I preserve image quality for cover images and avatars, for both members and groups?

Viewing 2 replies - 1 through 2 (of 2 total)

  • deeblake
    Participant

    @deeblake

    Anybody out there? No options for this? Something is compressing the images on upload….


    Varun Dubey
    Participant

    @vapvarun

    You can use codes to set cover image sizes, you can set width and height as per your theme cover section aspect ratio.

    function bbp_cover_image( $settings = array() ) {
        $settings['width']  = 1200;
        $settings['height'] = 300;
     
        return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'bbp_cover_image', 10, 1 );
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'bbp_cover_image', 10, 1 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar