cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to get height and width of an image from the api

how to get height and width of an image from the api

tiamat
Helpful | Level 6
Go to solution

I want to display an image stored on dropbox on my webpage. I am using the Javascript SDK. I get a shared link via

sharingCreateSharedLinkWithSettings and the image displays, but I want to specify the height and width in my img tag, and am missing that information.  I tried filesGetMetadata but it does not return what I need. I see that there is a method filesDownload. When I use this I see a filesBinary proprerty on the response, but am not sure how to use this (if indeed I should).

 

Thanks for your help,

1 Accepted Solution

Accepted Solutions

tiamat
Helpful | Level 6
Go to solution

The answer is to use include_media_info: true  as an option to files/get_metadata

View solution in original post

1 Reply 1

tiamat
Helpful | Level 6
Go to solution

The answer is to use include_media_info: true  as an option to files/get_metadata

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    tiamat Helpful | Level 6
What do Dropbox user levels mean?