We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

Santhanam G.'s avatar
Santhanam G.
New member | Level 1
10 years ago

Dropbox OAuth2 /Delta API not returing image width and height information

Hi,

I'm Integrating Dropbox photo API in my Android App, I want to display Image dimension in before loading the image in UI. I'm using https://api.dropboxapi.com/1/delta and adding inclue_media_info = true, i'm getting whole dropbox structure.From that I'm parse only image type files & I'll populate in UI.

I have other information of particular image like size,revision_id etc. but no where mentioned about resolution or width * height.

Please someone give solution for my problem..

  • Santhanam G.'s avatar
    Santhanam G.
    New member | Level 1

    Finally DropBox giving image dimension in photo_info data, thank you dropbox.

    .

    .

    "thumb_exists": true,
    "photo_info": {
    "lat_long": null,
    "time_taken": "Tue, 18 Dec 2012 16:56:45 +0000",
    "image_dimensions": [4000, 4000]
    },

    .

    .

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Unfortunately, the Dropbox API doesn't currently return this information, even when using include_media_info. The documentation says:

    "photo_info: Only returned when the include_media_info parameter is true and the file is an image. A dictionary that includes the creation time (time_taken) and the GPS coordinates (lat_long)."

    I'm sending this along as a feature request though. 

About Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 years ago
323 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!