Skip to:
Content

BuddyPress.org

Opened 3 years ago

Last modified 6 months ago

#8602 new feature request

Avatar uploads on smartphones/small mobile devices issue

Reported by: niftythree's profile niftythree Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version: 9.1.1
Component: Core Keywords:
Cc:

Description

Hello,

There’s an ongoing issue with avatar uploads on smartphones. Uploads from a mobile device in portrait mode are blurry when cropped, and user’s get an incorrect message (for example, “You have selected an image that is smaller than recommended. For best results, upload a picture larger than 350 x 400 pixels”) upon selecting/uploading a file.

It seems that the larger the BP_AVATAR_FULL_WIDTH and BP_AVATAR_FULL_HEIGHT are set to, the larger the portrait screen size (width) has to be for the message/blurry photo cropping to not occur on smartphones. It seems to be OK when the phone is rotated to landscape orientation.

For example, when using the following setup and a default theme, the message appears, and the cropped photo will be blurry 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 );

This is similar to trac ticket number 8598, but the above issue relates to smartphones/smaller mobile devices, and is unresolved. We'd be really grateful if someone can look into this.

Thanks.

Change History (1)

#1 @espellcaste
6 months ago

  • Milestone changed from Awaiting Review to Awaiting Contributions
  • Type changed from defect (bug) to feature request
Note: See TracTickets for help on using tickets.