Tagged: buddypress, profile avatar
- Buddypress seems to be reducing the quality of the profile avatar. Whenever I upload a photo for my profile image, the photo gets very dull. - Any idea on this, someone kindly help me. 
- Hi, 
 Thank you for the question.- BuddyPress does set the quality to 90%. You can change that with the following code. - // update quality parameters for avatar upload. add_filter( 'attachment_avatar_edit_image', function ( $args ) { $args['quality'] = 100; return $args; } );- Regards 
 Brajesh
- I Brajesh, I tried that bud didn’t notice anything. 
 It turned out that I had to increase the avatar size cropped, https://buddydev.com/changing-default-avatar-size-croppedused-by-buddypress/, very high, eg. 900px, and it worked. I don’t know if that is advisable though, but I might end up using an image optimizer plugin if there is any problem.- However, I am facing a problem. The cropper size also increased and can not fit on the page, to which extent I can’t see all the cropper, most especially on mobile devices. - Is there any way to reduce the cropper and maintain the size(900px). - Thank you very much for the help. -  This reply was modified 2 years, 8 months ago by Emmanuel Johnson. 
 
-  This reply was modified 2 years, 8 months ago by 
- Or is there a way to work on the avatar size cropped, and prevent it from decreasing the image quality. 
- Hi Emmanuel, 
 Thank you for the reply.- If the change in quality parameter is not working, Your best bet is to report it on BuddyPress trac. - As a thirdparty developer, we have limited entry points to the behaviour. - Regards 
 Brajesh
You must be logged in to reply to this topic.
