4 years, 10 months ago
I know this has been discussed before. But all the provided solutions, especially those ones:
Customizing BuddyPress Avatars
did not work. The avatar still gets blurred, even though the uploaded file is of a high resolution.
I found out what causes this error:
when an avatar is uploaded, the cropper sets a predefined size of the cropping window within the uploaded image (which is quite small, maybe a third of the uploaded image)
–>users might not change the size of this predefined cropping window and just move it around to find the part they want to appear
–>the image is then resized to the max. heigt/width set in the file wp-content\themes\x\framework\functions\plugins\buddypress.php
this max size in my case is bigger than the cropped part of the image and therefor it gets dragged to a bigger size than it was. This causes it to appear blurred.
I can solve this by manually fitting the cropping window as large as possible. But users will not know about this fix, so I have to find another solution. Anyone has an idea how I could achieve this? ( I was thinking about changing the preset cropping window to the maximum, but I haven´t found a way to achieve this)
thank you very much!
Might be an idea to raise this as a feature request on Trac – https://buddypress.trac.wordpress.org/ Maybe they can set the cropping window to max size as a solution?
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service