Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some uploaded RAW files returns null dimensions in the get photos API #1443

Open
httpdispatch opened this issue Feb 4, 2014 · 1 comment
Labels

Comments

@httpdispatch
Copy link

Api call https://test.trovebox.com/photos/album-12/token-55d5e1ea69/list.json

{ "actor" : "",
  "albums" : [ "12" ],
  "appId" : "test.openphoto.me",
  "dateSortByDay" : "20071129122550",
  "dateTaken" : "1196364849",
  "dateTakenDay" : "29",
  "dateTakenMonth" : "11",
  "dateTakenYear" : "2007",
  "dateUploaded" : "1390546353",
  "dateUploadedDay" : "23",
  "dateUploadedMonth" : "1",
  "dateUploadedYear" : "2014",
  "description" : null,
  "exifCameraMake" : "EASTMAN KODAK COMPANY",
  "exifCameraModel" : "KODAK P880 ZOOM DIGITAL CAMERA",
  "exifExposureTime" : "10/600",
  "exifFNumber" : 4,
  "exifFocalLength" : 5,
  "exifISOSpeed" : 50,
  "filenameOriginal" : "RAW_KODAK_P880.KDC",
  "groups" : "",
  "hash" : "8d47f225597ad9781df02d0369c4ee7f7ace3a19",
  "height" : null,
  "host" : "d1odebs29o9vbg.cloudfront.net",
  "id" : "1eq",
  "key" : null,
  "latitude" : null,
  "license" : "",
  "longitude" : null,
  "owner" : "hello+test@openphoto.me",
  "pathBase" : "http://d1odebs29o9vbg.cloudfront.net/base/200711/RAW_KODAK_P880-212867.KDC",
  "permission" : "0",
  "rotation" : "0",
  "size" : "13394",
  "status" : "1",
  "tags" : [ "2007",
      "November",
      "uploadedBy:Test"
    ],
  "timestamp" : "2014-01-24 06:57:20",
  "title" : null,
  "url" : "https://test.trovebox.com/p/1eq/album-12/token-55d5e1ea69",
  "views" : "0",
  "width" : "0"
}
@jmathai
Copy link
Member

jmathai commented Feb 4, 2014

Thanks @httpdispatch. It looks like the KDC files store width/height information in Exif Image Width and Exif Image Height attributes.

We're currently grepping /^Image Size(.*):/

exiftool RAW_KODAK_P880.KDC | egrep 'Image (Width|Height)'
Kodak Image Width               : 3264
Kodak Image Height              : 2448
Exif Image Width                : 3280
Exif Image Height               : 2454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants