cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Re: 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?