[buddypress-trac] [BuddyPress Trac] #8598: Incorrect warning message and blurry uploaded avatars when avatar upload size is customised

buddypress-trac noreply at wordpress.org
Mon Nov 15 09:54:31 UTC 2021


#8598: Incorrect warning message and blurry uploaded avatars when avatar upload
size is customised
--------------------------+---------------------
 Reporter:  niftythree    |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  10.0.0
Component:  Core          |     Version:  9.1.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by niftythree):

 Hi @imath

 Thank you very much for looking into this.

 On desktop and larger mobile devices (such as tablets), the issue of the
 message/blurry photo cropping is resolved with your suggestion. However,
 it would seem that the larger the {{{BP_AVATAR_FULL_WIDTH}}} and
 {{{BP_AVATAR_FULL_HEIGHT}}} are set to, the larger your portrait screen
 size (width) has to be for the message/blurry photo cropping to not occur
 on smartphones. It seems to be OK when switching to landscape orientation.

 For example, when using the following setup and a default theme, the
 message and blurry photo cropping triggers on a smartphone in portrait
 mode, but not in landscape mode:


 {{{
 define( 'BP_AVATAR_THUMB_WIDTH', 280 );
 define( 'BP_AVATAR_THUMB_HEIGHT', 320 );
 define( 'BP_AVATAR_FULL_WIDTH', 350 );
 define( 'BP_AVATAR_FULL_HEIGHT', 400 );
 define( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 999 );
 }}}


 Thanks.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8598#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list