Title: Image Upload field
Last modified: August 14, 2021

---

# Image Upload field

 *  Resolved [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/)
 * 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](https://ibb.co/z7XRwvN) How can
   I solve this problem? Thanks

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/image-upload-field-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/image-upload-field-2/page/2/?output_format=md)

 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14769208)
 * 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](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14769757)
 * Screenshot of the problem with my profile avatar in your demo: [https://ibb.co/xSwRr8y](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](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770669)
 * Hi [@brening](https://wordpress.org/support/users/brening/)
 * Does this issue occur with a default WP theme such as 2020 or 2021?
 * Regards,
 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770717)
 * This is my own WP theme. But the problem is also relevant on your demo.
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770729)
 * Hi [@brening](https://wordpress.org/support/users/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/](https://ultimatemember.com/support/ticket/)
 * Regards,
 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770751)
 * I’m a free user of Ultimate Member.
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770798)
 * Hi [@brening](https://wordpress.org/support/users/brening/)
 * Could you please tell us what mobile operating system( iOS or Android ) do you
   test with this issue?
 * Regards,
 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770841)
 * iOS, but yesterday I tested on the computer and sometimes this problem repeats
   on the computer.
 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14770867)
 * I downloaded the image on the computer. The image is cropped incorrectly:
    [https://ibb.co/WH49Kfq](https://ibb.co/WH49Kfq)
   [https://ibb.co/k3mfnPL](https://ibb.co/k3mfnPL)
 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14775287)
 * 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](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14775380)
 * Hi [@brening](https://wordpress.org/support/users/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](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14775414)
 * I’m having problems with these two photos:
    [https://postimg.cc/VJ11mBw3](https://postimg.cc/VJ11mBw3)
   [https://postimg.cc/WdXRVBXk](https://postimg.cc/WdXRVBXk) These are ordinary
   photos on an iPhone. I’m using the version of UM 2.1.21.
 *  Thread Starter [brening](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14777214)
 * 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](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14782852)
 * 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](https://wordpress.org/support/users/brening/)
 * (@brening)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/#post-14783403)
 * –
    -  This reply was modified 4 years, 10 months ago by [brening](https://wordpress.org/support/users/brening/).

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/image-upload-field-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/image-upload-field-2/page/2/?output_format=md)

The topic ‘Image Upload field’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [brening](https://wordpress.org/support/users/brening/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/image-upload-field-2/page/2/#post-14783875)
 * Status: resolved