Upload widget v2 - showing image dimensions on mobile

Comments

6 comments

  • Official comment
    Avatar
    Akshay Joshi

    Hi,

    In order to better understand the issue, I need some more information.
    Can I please ask you to provide more details about the problem you're encountering?

    Please confirm which version of our SDK you're using, as well as:

    * A sample of your code.
    * The value you're passing as parameters (for example, the transformation options)

    Looking forward to your response.

    Best,
    Akshay

    Comment actions Permalink
  • Avatar
    Liam

    Hi Ashkay,

    I'm using upload widget v2, i.e.:

    <script src="https://widget.cloudinary.com/v2.0/global/all.js" type="text/javascript"></script>
    Here's my code:
    window.cloudinary.openUploadWidget({
    theme:'minimal',
    cloud_name:'xxxxxx',
    upload_preset:'xxxxxx',
    multiple:false,
    folder:'xxxxxx',
    cropping:'server',
    cropping_aspect_ratio:1,
    cropping_default_selection_ratio:1,
    cropping_coordinates_mode:'custom',
    cropping_show_back_button:true,
    public_id:`${timestamp}`,
    resource_type:'image',
    sources: ['local', 'image_search', 'camera'],
    default_source:'image_search',
    google_api_key:'xxxxxx',
    },
    (error, result) => {

    console.log('result: ', result);
    if (result.event==='success') {
    // stuff
    }
    });

    But I don't think my transformation options have anything to do with it. Everything "works" fine.

    The issue is that I don't know how big the image results are on mobile. In the previous upload widget version it would overlay the dimensions on the thumbnail on touchstart. Now it doesn't show it anywhere. See screenshot.

    This issue is mobile specific. If I compare it with the desktop view, I get that info on hover. See screenshot:

    Because this size info is vital for my app, I'm pretty much unable to continue using the upload feature on my phone.

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    Hi Liam, 

    Thank you for providing more details. We have opened an internal request to display the image size when using the upload widget via mobile. 

    We will update you once we have any new information on this.

    Regards,
    Michal

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    Hi Liam,

    Displaying the image size when using the upload widget on mobile, is now working.

    Let us know if you have any issues.

    Regards,

    Michal

    0
    Comment actions Permalink
  • Avatar
    Liam

    Brilliant. Tested and working. Thanks so much!

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    Great! Glad we could help.

    0
    Comment actions Permalink

Please sign in to leave a comment.