• 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 2 replies - 16 through 17 (of 17 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brening

    Could you please tell us what are the file sizes of your test images?

    Regards,

    Thread Starter brening

    (@brening)

    Everything was solved with one line of code in the file class-uploader.php for the public function stream_photo :
    $image->maybe_exif_rotate();

    This function check if a JPEG image has EXIF Orientation tag and rotate it if needed.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Image Upload field’ is closed to new replies.