0

I have a lot of images (a few thousand) on amazon cloud, and I have a url for each file (jpeg). I need to get exif inf from each photo and create a sheet with this data.

I tried save img to google drive and use this tutorial How to extract EXIF data from jpeg files in Drive

function getPhotoExif(url) {

  var img =  UrlFetchApp.fetch(url) ,
      img_file = DriveApp.createFile(img.getBlob()),
      img_file_id = img_file.getId(),
      file = Drive.Files.get(img_file_id),
      metaData = file.imageMediaMetadata;

  Logger.log(metaData)
}

I expected that to work, but I have this error:

"ReferenceError: Drive is not defined (line 20, file "Code")"

Could you tell me how to get exif without saving the file to Google Drive or in any other way?

Marios
  • 26,333
  • 8
  • 32
  • 52

1 Answers1

0

As it said on the tutorial that you provided, did you?

You will need to enable the Advanced Drive service, following instructions here.

Kevkeev13
  • 379
  • 1
  • 9