• Resolved brening

    (@brening)


    Hallo.
    On my WordPress site with the Ultimate Member plugin, a field Upload Image with a cropping function 1:1 has been added. Thus, the image can only be square. But when the user uploads an image from the phone, it loads in the wrong aspect ratio.
    Example: https://ibb.co/z7XRwvN
    How can I solve this problem? Thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter brening

    (@brening)

    Hello again.
    I registered in your demo and the problem is the same there. The image does not correspond to the area that I selected when loading the avatar from my phone. And the image is not square. Username: great

    Thread Starter brening

    (@brening)

    Screenshot of the problem with my profile avatar in your demo: https://ibb.co/xSwRr8y
    Sorry for the many messages. It is very important for me to solve this problem as soon as possible.
    Thanks

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brening

    Does this issue occur with a default WP theme such as 2020 or 2021?

    Regards,

    Thread Starter brening

    (@brening)

    This is my own WP theme. But the problem is also relevant on your demo.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brening

    Do you have extension licenses? Could you please create a ticket on our website so we can take a closer look at this issue?
    https://ultimatemember.com/support/ticket/

    Regards,

    Thread Starter brening

    (@brening)

    I’m a free user of Ultimate Member.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brening

    Could you please tell us what mobile operating system( iOS or Android ) do you test with this issue?

    Regards,

    Thread Starter brening

    (@brening)

    iOS, but yesterday I tested on the computer and sometimes this problem repeats on the computer.

    Thread Starter brening

    (@brening)

    I downloaded the image on the computer. The image is cropped incorrectly:
    https://ibb.co/WH49Kfq
    https://ibb.co/k3mfnPL

    Thread Starter brening

    (@brening)

    Hi! I tested a little and it seems to me that the problem is in the $image->crop() method in the function stream_photo(); Maybe this will help you and me.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brening

    I couldn’t reproduce the issue with the crop.

    Could you please check and confirm if this issue occurs with the 2020 or 2021 theme on your end? Our demo site is still behind the latest version. We will update it in the next couple of weeks. Also, what’s the version of UM you’re using on your site that has this issue?

    Regards,

    Thread Starter brening

    (@brening)

    I’m having problems with these two photos:
    https://postimg.cc/VJ11mBw3
    https://postimg.cc/WdXRVBXk
    These are ordinary photos on an iPhone.
    I’m using the version of UM 2.1.21.

    Thread Starter brening

    (@brening)

    I found out that for images with a size of 3024*4032, the wp_get_image_editor function confuses the height and width. Therefore, the crop method then incorrectly selects the area. But I didn’t find a regularity when exactly the function wp_get_image_editor confuses height and width. That’s why I still need help.

    Thread Starter brening

    (@brening)

    Hi!
    The problem is in the photos taken on the iPhone. The getimagesize function and the get_size method of the WP_Image_Editor class confuse height and width. Although if you upload the same photo to the WP admin panel and crop it there, everything works. What does WordPress do with a photo that a plugin doesn’t do?

    Thread Starter brening

    (@brening)

    • This reply was modified 3 years, 3 months ago by brening.
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Image Upload field’ is closed to new replies.