• I was just testing the upload of a profile photos and I got the following message,

    Your photo is too small. It must be at least 600px wide.

    Is there a way to control this size? Suppose someone wants to upload a photo that is 500px wide? No way around this?

    I looked in Ultimate Member – Settings > General > Uploads, but didn’t notice any setting that would control this; unless it’s worded in a way that doesn’t make it obvious.

    Any help would be greatly appreciated.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter STEVE

    (@solernet)

    To make matters worse, I just tried to upload a jpg picture that is 678px x 381px and I got the exact same message.

    Your photo is too small. It must be at least 600px wide.

    HELP!!! ??

    Hi. I also have the same issue. It seems like the picture needs to be larger than 600px wide :/ It makes things really difficult for members, and we do need to make it easy for people to upload images.

    It would be great if we can remove the limit or reduce it a lot.

    @solernet

    Did you figure it out? Problem is that it does not mention that it needs to be 600px wide AND 600px high…

    The file is located here /plugins/ultimate-member/core/um-fields.php

    Search for min_width and replace the 4 instances of 600px with what you want.

    Ex:

    if ( $array[‘min_width’] == ” && $array[‘crop’] == 1 ) $array[‘min_width’] = 250;
    if ( $array[‘min_height’] == ” && $array[‘crop’] == 1 ) $array[‘min_height’] = 250;

    if ( $array[‘min_width’] == ” && $array[‘crop’] == 3 ) $array[‘min_width’] = 250;
    if ( $array[‘min_height’] == ” && $array[‘crop’] == 3 ) $array[‘min_height’] = 250;

    Thread Starter STEVE

    (@solernet)

    @niko87

    Sorry for the delayed response. I was on vacation and have finally gotten back to work on my site. I will give your fix a try as soon as possible. Does this fix work even after you upgrade to the latest version of UM?

    Thanks!

    I came across this because I had the same thing happen to me. Here’s how you fix it.

    1. Sign into your Admin WordPress Profile
    2. Go to Ultimate Member > Settings
    3. Go to General > Uploads
    4. At the bottom set the “Cover Photo Minimum Width (px)” to the needed value, I chose 800px.

    Feel free to Check it out.
    https://www.thehandyguy.com/user/131/

    @niko87 I could not found that find, can you please check again?

    Thank you!

    @gianghl1983 This fix was for the old version of UM (1.x), I have not upgraded it to version 2 so it might not be in the same location anymore. Maybe you can change it in the settings area now, since changing the core file is not a great solution.

    Otherwise you have to look through the core files and search for any references to min_width and min_height.

    @niko87 okie, thank you, I will try to look in Bracket for those phrases. ??

    @baddon250 How can you set cover photo and CSS avatar like this? Can you show me how…

    Thank you!

    @all: For 2.11 version it is in: /plugins/ultimate-member/includes/core/class-fields.php

    Thank you again @niko87 ! ??

    @niko87 is right. You need to ensure your image has a min of 600px width and 600px height. You can use LocoTranslate to reword the text under “Ultimate Member > Settings > General > Uploads > “Cover Photo Minimum Width (px)”

    Even if I set the min width to 100px above, it still insists on 600px.

    • This reply was modified 5 years, 8 months ago by mwhc00.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can we change the default minimum width accepted when uploading profile photos?’ is closed to new replies.