cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn about how Kev uses Dropbox to make sure he keeps track of all the new music he listens to? Check out his tips 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

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

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

tiamat
Helpful | Level 6

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

View solution in original post

1 Reply 1

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

tiamat
Helpful | Level 6

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

Who's talking

Top contributors to this post

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